NVIDIA-SMI 失败,因为它无法与 NVIDIA 驱动程序通信 - Lubuntu 20.04

NVIDIA-SMI 失败,因为它无法与 NVIDIA 驱动程序通信 - Lubuntu 20.04

我想Cuda在我的电脑上安装。所以我这样做了:

步骤1:

hp@hp-hpz400workstation:~$ sudo ubuntu-drivers devices
[sudo] Mot de passe de hp : 
== /sys/devices/pci0000:00/0000:00:03.0/0000:0f:00.0 ==
modalias : pci:v000010DEd00000DD8sv0000103Csd0000084Abc03sc00i00
vendor   : NVIDIA Corporation
model    : GF106GL [Quadro 2000]
driver   : nvidia-340 - distro non-free
driver   : nvidia-driver-390 - distro non-free recommended
driver   : xserver-xorg-video-nouveau - distro free builtin

hp@hp-hpz400workstation:~$ 

第2步:

hp@hp-hpz400workstation:~$ sudo apt-get install nvidia-driver-390

步骤3:

hp@hp-hpz400workstation:~$ nvidia-smi
Tue Dec  1 19:55:52 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.138                Driver Version: 390.138                   |
|-------------------------------+----------------------+----------------------+
| 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 2000         Off  | 00000000:0F:00.0  On |                  N/A |
| 30%   56C   P12    N/A /  N/A |     42MiB /   959MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0       591      G   /usr/lib/xorg/Xorg                            40MiB |
+-----------------------------------------------------------------------------+
hp@hp-hpz400workstation:~$ 

步骤4:我Cuda 11.1为我的GF106GL [Quadro 2000]卡下载新的软件。

https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=2004&target_type=debnetwork

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pinsudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
sudo apt-get update
sudo apt-get -y install cuda

第 5 步:当我重新启动计算机时,我必须写入此内容以启动屏幕。

hp@hp-hpz400workstation:~$ startx

第 6 步:我检查了哪里出了问题

hp@hp-hpz400workstation:~$ 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.

hp@hp-hpz400workstation:~$ 

步骤7:

在此处输入图片描述

问题:

  1. 我应该使用哪种图形驱动程序?
  2. 我应该使用哪个 Cuda 版本?

答案1

检查 cuda 11.1 的要求,您的 Quadro 2000 仅具有 2.1 的计算能力,因此仅限于 CUDA 8.0。

旧版 Quadro 产品

https://stackoverflow.com/questions/28932864/cuda-compute-capability-requirementsCUDA 版本与计算能力的列表

相关内容