I have Fedora and after certain upgrade my CUDA C executables fail to allocate memory on the graphic card:
$ ./a.out modprobe: FATAL: Module nvidia not found. bug.cu (16): no CUDA-capable device is detected in cudaMalloc((void **)&p, sizeof(int))
I checked which LKMs regarding the graphic card are active:
$ lspci -k | grep GTX 01:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1) Subsystem: Micro-Star International Co., Ltd. [MSI] Device 3171 Kernel modules: nouveau
On a forum I’ve read that two more LKMs exist: nvidia and nvidiafb.
Does the fact that they are not active in my case necessarily mean that I should reinstall the drivers? Or the problem can be somewhere else?