ubuntu 18.04安装cuda 8.0 和cudnn 6.0

网友投稿 1465 2022-10-01

ubuntu 18.04安装cuda 8.0 和cudnn 6.0

ubuntu 18.04安装cuda 8.0 和cudnn 6.0

我的cuda 8.0的-链接为:

6.0的-链接为:

cuda_8.0.61_375.26_linux.run --noexec --target cuda

进入cuda目录下

sudo cp InstalUtil.pm /etc/perl

配置环境变量:

export $PERL5LIB

安装cuda

sudo ./cuda_8.0.61_375.26_linux-run --override

我的安装信息为:

Do you accept the previously read EULA?accept/decline/quit: acceptYou are attempting to install on an unsupported configuration. Do you wish to continue?(y)es/(n)o [ default is no ]: yInstall NVIDIA Accelerated Graphics Driver for Linux-x86_64 375.26?(y)es/(n)o/(q)uit: nInstall the CUDA 8.0 Toolkit?(y)es/(n)o/(q)uit: yEnter Toolkit Location [ default is /usr/local/cuda-8.0 ]: Do you want to install a symbolic link at /usr/local/cuda?(y)es/(n)o/(q)uit: nInstall the CUDA 8.0 Samples?(y)es/(n)o/(q)uit: Install the CUDA 8.0 Samples?(y)es/(n)o/(q)uit: nInstalling the CUDA Toolkit in /usr/local/cuda-8.0 ...============ Summary ============Driver: Not SelectedToolkit: Installed in /usr/local/cuda-8.0Samples: Not SelectedPlease make sure that - PATH includes /usr/local/cuda-8.0/bin - LD_LIBRARY_PATH includes /usr/local/cuda-8.0/lib64, or, add /usr/local/cuda-8.0/lib64 to /etc/ld.so.conf and run ldconfig as rootTo uninstall the CUDA Toolkit, run the uninstall script in /usr/local/cuda-8.0/binPlease see CUDA_Installation_Guide_Linux.pdf in /usr/local/cuda-8.0/doc/pdf for detailed information on setting up CUDA.***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 361.00 is required for CUDA 8.0 functionality to work.To install the driver using this installer, run the following command, replacing with the name of this run file: sudo .run -silent -driver

然后增加环境变量到~/.bashrc文件里:

export PATH=/usr/local/cuda-8.0/bin:$PATHexport LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64:$LD_LIBRARY_PATH

运行下面的命令就可以显示cuda 8.0的信息了:

source ~/.bashrc nvcc -V

我的显示信息为:

(base) ➜ data nvcc -V nvcc: NVIDIA (R) Cuda compiler driverCopyright (c) 2005-2016 NVIDIA CorporationBuilt on Tue_Jan_10_13:22:03_CST_2017Cuda compilation tools, release 8.0, V8.0.61

cudnn安装

cp cudnn-8.0-linux-x64-v6.0.solitairetheme8 cudnn-8.0-linux-x64-v6.0.tgztar -xvf cudnn-8.0-linux-x64-v6.0.tgz cd cuda/sudo cp include/cudnn.h /usr/local/cuda-8.0/include sudo cp lib64/libcudnn* /usr/local/cuda-8.0/lib64

参考文献

[1]. 在ubuntu上安装多个版本的CUDA,并且可以随时切换.​

[2].ubuntu 安装CUDA时,找不到 InstalUtils.pm解决方案.​

[3]. cudnn6.0的安装简单教程.​

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:为什么微信图标变红色?(为什么微信图标变红色)
下一篇:neo4j导入数据以后,Neo4j Browser节点上没有显示数据
相关文章

 发表评论

暂时没有评论,来抢沙发吧~