系统相关
首页 > 系统相关> > Ubuntu18.04安装CUDA10.2+cuDNN

Ubuntu18.04安装CUDA10.2+cuDNN

作者:互联网

1 安装CUDA10.2

步骤说明:
(1)Do you accept the above EULA? accept

(2)CUDA Installer 取消Driver安装(Enter选择/取消)-> Install

(3)日志

export PATH=/usr/local/cuda-10.2/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64:$LD_LIBRARY_PATH
cd /usr/local/cuda-10.2/samples/1_Utilities/deviceQuery
sudo make
./deviceQuery

出现如下输出,则CUDA安装成功

nvcc -V出现如下输出,则CUDA安装成功。

2 安装cuDNN

sudo cp cuda/include/cudnn.h /usr/local/cuda-10.2/include
sudo cp cuda/include/cudnn_version.h /usr/local/cuda-10.2/include
sudo cp cuda/lib64/libcudnn* /usr/local/cuda-10.2/lib64
sudo chmod a+r /usr/local/cuda-10.2/include/cudnn.h
sudo chmod a+r /usr/local/cuda-10.2/include/cudnn_version.h 
sudo chmod a+r /usr/local/cuda-10.2/lib64/libcudnn*

标签:10.2,sudo,cuDNN,cuda,Ubuntu18.04,local,CUDA10.2,usr
来源: https://www.cnblogs.com/DeepRS/p/15714963.html