cuda安装

各版本: https://developer.nvidia.com/cuda-toolkit-archive

下载方法: https://developer.nvidia.com/zh-cn/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1604&target_type=runfilelocal

不用root升级toolkit: https://stackoverflow.com/questions/39379792/install-cuda-without-root

版本升级: https://www.jianshu.com/p/54928967e417

(base) jingyi@N705:~/za$ sh cuda_11.1.0_455.23.05_linux.run
===========
= Summary =
===========

Driver:   Not Selected
Toolkit:  Installed in /home/jingyi/cuda11/toolkit/
Samples:  Installed in /home/jingyi/cuda11/cudasamples/, but missing recommended libraries

Please make sure that
 -   PATH includes /home/jingyi/cuda11/toolkit/bin
 -   LD_LIBRARY_PATH includes /home/jingyi/cuda11/toolkit/lib64, or, add /home/jingyi/cuda11/toolkit/lib64 to /etc/ld.so.conf and run ldconfig as root

To uninstall the CUDA Toolkit, run cuda-uninstaller in /home/jingyi/cuda11/toolkit/bin
***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least .00 is required for CUDA 11.1 functionality to work.
To install the driver using this installer, run the following command, replacing <CudaInstaller> with the name of this run file:
    sudo <CudaInstaller>.run --silent --driver

Logfile is /tmp/cuda-installer.log

原文地址:https://www.cnblogs.com/holaworld/p/14571862.html