1. 安装cuda10.02
下载cuda10.02,选择runfile(local)这个文件下载,见链接https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1604&target_type=runfilelocal
然后命令行执行如下操作:
chmod +x cuda_10.2.89_440.33.01_linux.run
./cuda_10.2.89_440.33.01_linux.run
安装过程中:
同意协议(accept),不安装driver(no),选择安装cuda时个人用户的目录,如/home/yourname/cuda8,下一个选项(no),然后可以选择cudasamples的安装目录。其他直接回车即可。
安装完成后出现如下界面: