NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
Hello to everyone.
I'm a new user of arch linux. I've installed an old kernel,this version :
[root@zio ziomario2020]# uname -a
Linux zio 5.8.18 #1 SMP PREEMPT Mon Nov 9 13:00:03 CET 2020 x86_64 GNU/Linux
I'm trying to solve this problem :
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
I've read that to fix it I should install the nvidia driver,cuda and cudnn. Ok,I did it with the following commands :
sudo pacman -Ss nvidia
sudo pacman -S cuda cudnn python-tensorflow-opt-cuda
as u can see,the cuda package has been installed succesfully :
[root@zio ziomario2020]# nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Oct_12_20:09:46_PDT_2020
Cuda compilation tools, release 11.1, V11.1.105
Build cuda_11.1.TC455_06.29190527_0
and also the cudnn package is there :
[root@zio ziomario2020]# ls /usr/include/cudnn.h
/usr/include/cudnn.h
I have 3 graphic cards on the pc :
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Desktop 9 Series) (rev 02)
**DeviceName: Onboard - Video**
**Subsystem: Gigabyte Technology Co., Ltd Device d000**
**Kernel driver in use: i915**
**Kernel modules: i915**
01:00.0 VGA compatible controller: NVIDIA Corporation TU102 [GeForce RTX 2080 Ti] (rev a1)
**Subsystem: ZOTAC International (MCO) Ltd. Device 2503**
**Kernel modules: nouveau**
01:00.1 Audio device: NVIDIA Corporation TU102 High Definition Audio Controller (rev a1)
**Subsystem: ZOTAC International (MCO) Ltd. Device 2503**
**Kernel driver in use: snd\_hda\_intel**
**Kernel modules: snd\_hda\_intel**
01:00.2 USB controller: NVIDIA Corporation TU102 USB 3.1 Host Controller (rev a1)
**Subsystem: ZOTAC International (MCO) Ltd. Device 2503**
**Kernel driver in use: xhci\_hcd**
**Kernel modules: xhci\_pci**
01:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU102 USB Type-C UCSI Controller (rev a1)
**Subsystem: ZOTAC International (MCO) Ltd. Device 2503**
**Kernel driver in use: nvidia-gpu**
**Kernel modules: i2c\_nvidia\_gpu**
02:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] (rev a1)
**Subsystem: ZOTAC International (MCO) Ltd. Device 2438**
**Kernel modules: nouveau**
02:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1)
**Subsystem: ZOTAC International (MCO) Ltd. Device 2438**
**Kernel driver in use: snd\_hda\_intel**
**Kernel modules: snd\_hda\_intel**
what's wrong here ?
[root@zio ziomario2020]# modprobe nvidia
modprobe: FATAL: Module nvidia not found in directory /lib/modules/5.8.18
Edited 10 Nov 2020. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 11 · 82% up
- Kind
- Text
- ID
- jrlwma
23 comments
You either need to install the linux-headers package for the old kernel and switch to nvidia-dkms. Or just update the kernel, the CUDA/OpenCL incompatibility is fixed with the 455.38 driver
Where did you find that the 455.38 driver solved the issue with, I assume, the kernel 5.9?? Don't get me wrong, I'm happy if it does, but Nvidia said mid-November and I've checking forum and reddits waiting for the news 🤔
I'm literally using it. You could easily make even the previous driver compatible by doing a local compile and adjusting the module license from 'NVIDIA' to 'GPL' The "incompatibility" has/had no technical reason, it was surfaced due to software/license politics. Looking at the 38 driver and the relevant nvidia_uvm module looks like the license was adjusted. Whether that was done quick and dirty or more in depth discussions take place behind the scenes I don't know.
Cool. This is good to know. Was also kind of expecting to hear something somewhere around mid-November. Gonna go ahead and give it a shot here in a few minutes. Thanks for the heads up!
E#2: Can confirm
nvidia-455.38-5is working with kernel 5.9 for me. My system is once again current:DIs this on kernel 5.9?
is this good ? (don't know if manjaro headers are good for arch
[root@zio ziomario2020]# grep "X Driver" /var/log/Xorg.0.log
grep: /var/log/Xorg.0.log: File o directory non esistente
[root@zio ziomario2020]# modinfo
modinfo: ERROR: missing module or filename.
[root@zio ziomario2020]# modinfo /usr/lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko | grep ^version
modinfo: ERROR: Module /usr/lib/modules/5.8.18/kernel/drivers/video/nvidia.ko not found.
[root@zio ziomario2020]# nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
I can't use the nvidia driver on kernel 5.9....
Where did you get 5.8.18 from in the first place? It was never officially packaged for Arch. You need to install the exact headers of the exact kernel you installed. Depending on how you installed they might already be, so opting for nvidia-dkms (... and nvidia-utils) should work out.
The other things you mention either don't make much sense to me or make me not sure what you actually ended up doing.
I use the nvidia drivers on kernel 5.9 with the normal official packages from the repository, you have to do better than "I can't use" why not? What are you doing, which error messages do you see? How did you attempt to install the nvidia drivers?
According to the package file list at https://www.archlinux.org/packages/community/x86_64/cudnn/ the file is at
/usr/include/cudnn.h-- you can also usepacman -Ql cudnnto get a list of the files belonging to the package.Note that nvidia and CUDA aren't fully compatible with the current kernel so you might need to use the LTS kernel instead.
Have you rebooted after installing the drivers?
Install (and boot from) linux-lts kernel. There's currently a problem with the mainline kernel and nvidia drivers - blame nvidia for that. It may affect you. See the wiki https://wiki.archlinux.org/index.php/NVIDIA#Installation point 3.
He's on 5.8 still, so he needs nvidia-dkms since his kernel is out of date.
oh men,sorry,I forgot to say that i'm not running the kernel 5.9. I've installed the kernel 5.8 because I read that the nvidia driver is not compatible with 5.9...
[root@zio ziomario2020]# uname -a
Linux zio 5.8.18 #1 SMP PREEMPT Mon Nov 9 13:00:03 CET 2020 x86_64 GNU/Linux
yes,cudnn is there :
[root@zio ziomario2020]# ls /usr/include/cudnn.h
/usr/include/cudnn.h
Post
pacman -Q | grep nvidia[root@zio grub]# pacman -Q | grep nvidia
nvidia 455.38-5
nvidia-lts 1:455.38-3
nvidia-settings 455.38-1
nvidia-utils 455.38-1
opencl-nvidia 455.38-1
The
nvidiapackage is always up-to-date with the currentlinuxpackage. For other kernels you need thenvidia-dkmspackage. Good luck.