NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. on ubuntu 18.04 with NVIDIA Corporation GK110GL [Quadro K5200]

Hi there,

I have a dell desktop with Ubuntu 18.04.1 LTS bionic and

NVIDIA graphics card:
lspci | grep -i nvidia:
03:00.0 VGA compatible controller: NVIDIA Corporation GK110GL [Quadro K5200] (rev a1)

I have installed driver NVIDIA-Linux-x86_64-418.43.run from NVIDIA website.

I am trying to install CUDA and cuDnn and Caffe for deep learning.
when I run nvidia-smi in terminal I get the following error:

amin@amin-merati-desktop:~$ 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 also get the following by running dpkg -l | grep nvidia:

amin@amin-merati-desktop:~$ dpkg -l | grep nvidia
ii libnvidia-cfg1-415:amd64 415.27-0ubuntu0~gpu18.04.2 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-390 390.116-0ubuntu0.18.04.1 all Shared files used by the NVIDIA libraries
ii libnvidia-common-396 396.54-0ubuntu0~gpu18.04.1 all Shared files used by the NVIDIA libraries
ii libnvidia-common-415 415.27-0ubuntu0~gpu18.04.2 all Shared files used by the NVIDIA libraries
ii libnvidia-common-418 418.43-0ubuntu0~18.04.1 all Shared files used by the NVIDIA libraries
rc libnvidia-compute-390:amd64 390.116-0ubuntu0.18.04.1 amd64 NVIDIA libcompute package
rc libnvidia-compute-390:i386 390.116-0ubuntu0.18.04.1 i386 NVIDIA libcompute package
rc libnvidia-compute-396:amd64 396.54-0ubuntu0~gpu18.04.1 amd64 NVIDIA libcompute package
rc libnvidia-compute-396:i386 396.54-0ubuntu0~gpu18.04.1 i386 NVIDIA libcompute package
ii libnvidia-compute-415:amd64 415.27-0ubuntu0~gpu18.04.2 amd64 NVIDIA libcompute package
ii libnvidia-compute-415:i386 415.27-0ubuntu0~gpu18.04.2 i386 NVIDIA libcompute package
rc libnvidia-compute-418:amd64 418.43-0ubuntu0~18.04.1 amd64 NVIDIA libcompute package
ii libnvidia-decode-415:amd64 415.27-0ubuntu0~gpu18.04.2 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-decode-415:i386 415.27-0ubuntu0~gpu18.04.2 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-415:amd64 415.27-0ubuntu0~gpu18.04.2 amd64 NVENC Video Encoding runtime library
ii libnvidia-encode-415:i386 415.27-0ubuntu0~gpu18.04.2 i386 NVENC Video Encoding runtime library
ii libnvidia-fbc1-415:amd64 415.27-0ubuntu0~gpu18.04.2 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-fbc1-415:i386 415.27-0ubuntu0~gpu18.04.2 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-415:amd64 415.27-0ubuntu0~gpu18.04.2 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-gl-415:i386 415.27-0ubuntu0~gpu18.04.2 i386 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-ifr1-415:amd64 415.27-0ubuntu0~gpu18.04.2 amd64 NVIDIA OpenGL-based Inband Frame Readback runtime library
ii libnvidia-ifr1-415:i386 415.27-0ubuntu0~gpu18.04.2 i386 NVIDIA OpenGL-based Inband Frame Readback runtime library
rc nvidia-340 340.107-0ubuntu0.18.04.1 amd64 NVIDIA binary driver - version 340.107
rc nvidia-compute-utils-390 390.116-0ubuntu0.18.04.1 amd64 NVIDIA compute utilities
rc nvidia-compute-utils-396 396.54-0ubuntu0~gpu18.04.1 amd64 NVIDIA compute utilities
ii nvidia-compute-utils-415 415.27-0ubuntu0~gpu18.04.2 amd64 NVIDIA compute utilities
rc nvidia-compute-utils-418 418.43-0ubuntu0~18.04.1 amd64 NVIDIA compute utilities
rc nvidia-dkms-390 390.116-0ubuntu0.18.04.1 amd64 NVIDIA DKMS package
rc nvidia-dkms-396 396.54-0ubuntu0~gpu18.04.1 amd64 NVIDIA DKMS package
ii nvidia-dkms-415 415.27-0ubuntu0~gpu18.04.2 amd64 NVIDIA DKMS package
rc nvidia-dkms-418 418.43-0ubuntu0~18.04.1 amd64 NVIDIA DKMS package
ii nvidia-driver-415 415.27-0ubuntu0~gpu18.04.2 amd64 NVIDIA driver metapackage
rc nvidia-kernel-common-390 390.116-0ubuntu0.18.04.1 amd64 Shared files used with the kernel module
rc nvidia-kernel-common-396 396.54-0ubuntu0~gpu18.04.1 amd64 Shared files used with the kernel module
ii nvidia-kernel-common-415 415.27-0ubuntu0~gpu18.04.2 amd64 Shared files used with the kernel module
rc nvidia-kernel-common-418 418.43-0ubuntu0~18.04.1 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-415 415.27-0ubuntu0~gpu18.04.2 amd64 NVIDIA kernel source package
rc nvidia-opencl-icd-340 340.107-0ubuntu0.18.04.1 amd64 NVIDIA OpenCL ICD
ii nvidia-prime 0.8.8.2 all Tools to enable NVIDIA’s Prime
ii nvidia-settings 390.77-0ubuntu0.18.04.1 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-415 415.27-0ubuntu0~gpu18.04.2 amd64 NVIDIA driver support binaries
ii xserver-xorg-video-nvidia-415 415.27-0ubuntu0~gpu18.04.2 amd64 NVIDIA binary Xorg driver

Could you please help me what should I do?
Am I able to use Quadro K5200 for CUDA and deep learning?

Thanks
Amin

  • Don’t use the .run installers, use --uninstall to uninstall them
  • purge anthing nvidia/cuda
  • add the ubuntu graphics ppa https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
  • install the driver from that (sudo apt install nvidia-driver-418)
  • download the cuda .deb
  • add the repo to your system (first three steps from install instructions on download page)
  • don’t install cuda
  • instead, run sudo apt install cuda-toolkit-10-1

Hi,

I uninstalled .run driver using --uninstall
I uninstalled all the packages using sudo apt-get remove …
I installed nvidia driver 418 using (sudo apt install nvidia-driver-418)
I tried to run nvidia-smi, but the problem was still there with the same error:
“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 rebooted and now it is on 600x800 resolution as if the graphics card not installed!?
Any clue?

Thanks
Amin
nvidia-bug-report.log.gz (85.8 KB)

Please run nvidia-bug-report.sh as root and attach the resulting .gz file to your post. Hovering the mouse over an existing post of yours will reveal a paperclip icon.
https://devtalk.nvidia.com/default/topic/1043347/announcements/attaching-files-to-forum-topics-posts/

If you have secure boot enabled, please disable it.

Hi there,

I attached the .gz file to paper clip.
How can I disable secure boot?

Thanks
Amin

Hi there,

I just googled and managed to disable secure boot and on the reboot nvidia-smi successfully works:
amin@amin-merati-desktop:~$ nvidia-smi
Mon Mar 11 16:59:25 2019
±----------------------------------------------------------------------------+
| NVIDIA-SMI 418.43 Driver Version: 418.43 CUDA Version: 10.1 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Quadro K5200 Off | 00000000:03:00.0 On | Off |
| 26% 41C P0 39W / 150W | 237MiB / 8118MiB | 0% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1181 G /usr/lib/xorg/Xorg 32MiB |
| 0 1217 G /usr/bin/gnome-shell 53MiB |
| 0 1471 G /usr/lib/xorg/Xorg 74MiB |
| 0 1623 G /usr/bin/gnome-shell 72MiB |
±----------------------------------------------------------------------------+

Thanks a lot
Amin