I get an Segmentation fault (core dumped) error when I run the code in this link: https://developer.nvidia.com/blog/even-easier-introduction-cuda/. Also I get Warning: CUDA device error, GPU profiling skipped when I run the profiling.
This is what I get when I run “lspci | grep ’ VGA ’ | cut -d” " -f 1 | xargs -i lspci -v -s {}":
01:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2060] (rev a1) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device 1f11
Physical Slot: 0
Flags: bus master, fast devsel, latency 0, IRQ 102
Memory at fb000000 (32-bit, non-prefetchable) [size=16M]
Memory at b0000000 (64-bit, prefetchable) [size=256M]
Memory at c0000000 (64-bit, prefetchable) [size=32M]
I/O ports at f000 [size=128]
Expansion ROM at fc000000 [virtual] [disabled] [size=512K]
Capabilities:
Kernel driver in use: nvidia
lspci: Unable to load libkmod resources: error -12
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c5) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Renoir
Flags: bus master, fast devsel, latency 0, IRQ 49
Memory at d0000000 (64-bit, prefetchable) [size=256M]
Memory at e0000000 (64-bit, prefetchable) [size=2M]
I/O ports at e000 [size=256]
Memory at fc500000 (32-bit, non-prefetchable) [size=512K]
Capabilities:
Kernel driver in use: amdgpu
lspci: Unable to load libkmod resources: error -12