系统相关
首页 > 系统相关> > 安装cuda10.2在ubuntu20.04下

安装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则为成功。

标签:ubuntu20.04,10.0,usr,local,cuda,PATH,安装,cuda10.2,CUDA
来源: https://blog.csdn.net/m0_51590371/article/details/121466983