1. 程式人生 > 實用技巧 >ubuntu18.04+GTX2080 部署cuda10.2

ubuntu18.04+GTX2080 部署cuda10.2

(1)

sudo apt-get update

(2)

https://blog.csdn.net/wf19930209/article/details/95237824

更新PCI ID

由於目前ubuntu 18.04使用的核心版本是4.15.0,比較新的顯示卡還沒有同步更新到位,所以我們需要手動更新一下支援的PCI ID。

1開啟終端輸入:

sudo update-pciids

2檢視命令是否成功執行:

sudo cat /usr/share/misc/pci.ids | grep -i rtx

3 檢視當前插入的RTX2080Ti是否正確識別:

lspci | grep -i nvidia

安裝驅動

驗證顯示卡是否安裝成功

開啟終端執行:

nvidia-smi

輸出結果如下代表成功:

Tue Jul  9 20:55:38 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 430.26       Driver Version: 430.26       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| 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 RTX 208...  Off  | 00000000:42:00.0  On |                  N/A |
|  0%   44C    P8    17W / 300W |    295MiB / 11011MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1418      G   /usr/lib/xorg/Xorg                            18MiB |
|    0      1449      G   /usr/bin/gnome-shell                          57MiB |
|    0      1718      G   /usr/lib/xorg/Xorg                           100MiB |
|    0      1832      G   /usr/bin/gnome-shell                         109MiB |
|    0      3780      G   gnome-control-center                           6MiB |
+-----------------------------------------------------------------------------+

檢視命令是否成功執行: