37

GPU之更新CUDA及驱动版本

 5 years ago
source link: https://www.tuicool.com/articles/m2Qjyuq
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

CUDA版本迭代很快,没多久就到10.0以上啦,有些应用需要用到高版本的CUDA,于是之前的CUDA-8.0得退役了。

CUDA的更新往往也伴随着NVIDIA驱动的更新,因此,在更新CUDA前,有可能还需要更新驱动版本。

本文讲述了将CUDA 8.0升级到10.0并重装驱动的过程。

CUDA及其驱动兼容情况如下表所示。具体可参见: https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html

Table 1. CUDA Toolkit and Compatible Driver Versions

CUDA Toolkit Linux x86_64 Driver Version Windows x86_64 Driver Version CUDA 10.1.105 >= 418.39 >= 418.96 CUDA 10.0.130 >= 410.48 >= 411.31 CUDA 9.2 (9.2.148 Update 1) >= 396.37 >= 398.26 CUDA 9.2 (9.2.88) >= 396.26 >= 397.44 CUDA 9.1 (9.1.85) >= 390.46 >= 391.29 CUDA 9.0 (9.0.76) >= 384.81 >= 385.54 CUDA 8.0 (8.0.61 GA2) >= 375.26 >= 376.51 CUDA 8.0 (8.0.44) >= 367.48 >= 369.30 CUDA 7.5 (7.5.16) >= 352.31 >= 353.66 CUDA 7.0 (7.0.28) >= 346.46 >= 347.62

卸载 CUDA-8.0 Toolkit

首先将老的 CUDA-8.0 卸载掉,

cd /usr/local/cuda-8.0/bin
sudo ./uninstall_cuda_toolkit_8.0.pl

卸载老的 NVIDIA 驱动

本机的NVIDIA驱动为390.12,但是这个run文件找不到了,于是去官网找了一个 NVIDIA-Linux-x86_64-390.116.run ,运行:

$ sh NVIDIA-Linux-x86_64-390.116.run --uninstall

卸载旧版本 NVIDIA 驱动。

安装新版本 NVIDIA 驱动

驱动下载地址: https://www.nvidia.cn/Download/index.aspx?lang=cn

运行

$ sh NVIDIA-Linux-x86_64-410.104.run

即可。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK