Nvidia 没有为 Debian 提供 Cuda 编译工具包,因此使用 Ubuntu 版本这里但
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Sun_Sep__4_22:14:01_CDT_2016
Cuda compilation tools, release 8.0, V8.0.44
这与以下相同这里,即8.0.44版本;仅提供实验包这里关于最新版本 10 和
$ nvidia-smi
Mon Jul 1 10:26:48 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.116 Driver Version: 390.116 |
|-------------------------------+----------------------+----------------------+
| 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 P5000 Off | 00000000:01:00.0 On | N/A |
| N/A 50C P8 9W / N/A | 951MiB / 16275MiB | 1% Default |
+-------------------------------+----------------------+----------------------+
我看不到任何版本号。
即使下载了最新版本 10,我也总是安装旧版本。
如何将Cuda编译工具升级到最新版本?
答案1
我使用不稳定的依赖项安装了它,因为过时的稳定依赖项使得
$ cat /etc/apt/sources.list
deb http://deb.debian.org/debian experimental main
deb http://ftp.debian.org/debian/ unstable main contrib non-free
你注意到的地方experimental
,unstable
然后运行
$ sudo apt update
$ sudo apt fullupgrade
库达
$ sudo apt -t experimental install nvidia-cuda-toolkit nvidia-detect cuda
设置
$ nvidia-smi
Tue Jul 2 11:42:44 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.74 Driver Version: 418.74 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 P5000 Off | 00000000:01:00.0 On | N/A |
| N/A 47C P8 4W / N/A | 540MiB / 16275MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Tue_Jun_12_23:07:04_CDT_2018
Cuda compilation tools, release 9.2, V9.2.148
$ nvidia-detect
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP104GLM [Quadro P5000 Mobile] [10de:1bb6] (rev a1)
Checking card: NVIDIA Corporation GP104GLM [Quadro P5000 Mobile] (rev a1)
Your card is supported by the default drivers and legacy driver series 390.
It is recommended to install the
nvidia-driver
package.