在前面装好显卡驱动之后,在这一节,安装 CUDA,由于更新换代,现在 NVIDIA 官网上已经是 CUDA 10 了。
安装过程
1、在 官网 上下载 cuda_10.0.130_410.48_linux.run, 建议下载 .run 的文件,大约2G,便于自己选择性安装;
若官网上无法下载,可从这里获取网盘上资源的地址及密码,从网盘上下载。
2、安装 CUDA:
sudo sh cuda_10.0.130_410.48_linux.run
需要注意的是,在前一个阶段,我们已经自己安装了 NVIDIA 显卡的驱动,所以不需要安装 CUDA 里面带的 NVIDIA 显卡的驱动,驱动的安装过程可参见 这里, 测试过程参见 这里。
若显示如下界面,则成功。