之后会跳出
End User License Agreement
-------C
NVIDIA Software License Agreement and CUDA Supplement toSoftware License Agreement .
Preface
------
The Software License Agreement in Chapter 1 and the Supplementin Chapter 2 contain license terms and conditions that governthe use of NVIDIA software. By accepting this agreement, youagree to comply with all the terms and conditions applicableto the product(s) included herein.
NVIDIA Driver
Do you accept the above EULA? (accept/decline/quit):
accept
输入accept
CUDA Installer
-[X] Driver
[X] 450.51.06
+[X] CUDA Toolkit 11.0
[X] CUDA Samples 11.0
[X] CUDA Demo Suite 11.0
[X] CUDA Documentation 11.0
Options
Install
如果输入nvidia-smi有输出表格结果就将Driver取消勾选,如果没有就直接选择install
声明环境变量
vim ~/.bashrc
加入以下命令
export PATH=/usr/local/cuda-11.0/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-11.0/lib64:$LD_LIBRARY_PATH