安装cuda10.2在ubuntu20.04下

cuda安装

会提示:

***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 384.00 is required for CUDA 10.0 functionality to work.忽略就行。

  • 设置环境变量

在主目录下的~/.bashrc文件添加如下路径

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.0/lib64
export PATH=$PATH:/usr/local/cuda-10.0/bin
export CUDA_HOME=$CUDA_HOME:/usr/local/cuda-10.0
 

 用su直接切换到root,再执行 source ~/.bashrc

  •  检测是否安装成功
cd /usr/local/cuda/samples/1_Utilities/deviceQuery
sudo make 
./deviceQuery 

 result为pass则为成功。

  •  查看cuda版本 :

安装cuda10.2在ubuntu20.04下

  •  切换cuda版本:

安装cuda10.2在ubuntu20.04下

上一篇:机器学习03-sklearn.LinearRegression 源码学习


下一篇:时间轴