TransWikia.com

CUDA install removes Nvidia driver in ubuntu 18.04

Ask Ubuntu Asked by Pranto on November 28, 2020

After installing CUDA 11, It removed my Nvidia driver.

$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.

$nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Wed_Jul_22_19:09:09_PDT_2020
Cuda compilation tools, release 11.0, V11.0.221
Build cuda_11.0_bu.TC445_37.28845127_0

$uname -r
5.4.0-47-generic

It doesn’t allow me to select Nvidia from the software & updates center. Why is that?
png

Should I install my Nvidia driver manually? Because previously I had an issue with the black screen after installing manually the Nvidia driver. I need your suggestion. What should I do?

Looks like, CUDA 11 is incompatible with Nvidia 340.108, and that’s why when I install CUDA, It installed nvidia-driver-450 and removed nvidia 340.108.

Tue Sep 22 11:52:40 2020       
+------------------------------------------------------+                       
| NVIDIA-SMI 340.108    Driver Version: 340.108        |                       
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce 820M        Off  | 0000:03:00.0     N/A |                  N/A |
| N/A   49C    P0    N/A /  N/A |    212MiB /  2047MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Compute processes:                                               GPU Memory |
|  GPU       PID  Process name                                     Usage      |
|=============================================================================|
|    0            Not Supported                                               |
+-----------------------------------------------------------------------------+

Which Cuda toolkit is compatible with the above driver?

ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:1c.4/0000:03:00.0 ==
modalias : pci:v000010DEd00001140sv000017AAsd0000380Dbc03sc02i00
vendor   : NVIDIA Corporation
model    : GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (GeForce 820M)
driver   : nvidia-driver-450 - distro non-free recommended
driver   : nvidia-340 - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin

After installing nvidia-driver-450

dmesg |grep -i nvidia
[   17.274190] nvidia: loading out-of-tree module taints kernel.
[   17.274202] nvidia: module license 'NVIDIA' taints kernel.
[   17.283429] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[   17.292951] nvidia-nvlink: Nvlink Core is being initialized, major device number 237
[   17.293403] NVRM: The NVIDIA GeForce GT 820M GPU installed in this system is
               NVRM:  supported through the NVIDIA 390.xx Legacy drivers. Please
               NVRM:  visit http://www.nvidia.com/object/unix.html for more
               NVRM:  information.  The 450.66 NVIDIA driver will ignore
[   17.293404] NVRM: No NVIDIA graphics adapter found!
[   17.293527] nvidia-nvlink: Unregistered the Nvlink Core, major device number 237
[   17.372253] nvidia-nvlink: Nvlink Core is being initialized, major device number 237
[   17.372708] NVRM: The NVIDIA GeForce GT 820M GPU installed in this system is
               NVRM:  supported through the NVIDIA 390.xx Legacy drivers. Please
               NVRM:  visit http://www.nvidia.com/object/unix.html for more
               NVRM:  information.  The 450.66 NVIDIA driver will ignore
[   17.372710] NVRM: No NVIDIA graphics adapter found!
[   17.372844] nvidia-nvlink: Unregistered the Nvlink Core, major device number 237
[   43.172017] nvidia-nvlink: Nvlink Core is being initialized, major device number 237
[   43.173631] NVRM: The NVIDIA GeForce GT 820M GPU installed in this system is
               NVRM:  supported through the NVIDIA 390.xx Legacy drivers. Please
               NVRM:  visit http://www.nvidia.com/object/unix.html for more
               NVRM:  information.  The 450.66 NVIDIA driver will ignore
[   43.173633] NVRM: No NVIDIA graphics adapter found!
[   43.173822] nvidia-nvlink: Unregistered the Nvlink Core, major device number 237
pranto@pranto-Lenovo-Z40-70:~$ lsmod | grep nvidia

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP