深度学习服务器环境配置-tensorflow

 

1、cudnn版本查询

[root@65-35-GPU Tools]# cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2

2、cuda版本查询

[root@65-35-GPU Tools]# cat /usr/local/cuda/version.txt

3、cudnn、cuda、python、tensorflow-gpu、nvidia驱动版本、glibc对应关系(建议先更新驱动,否则会出现libc.so.6删除的错误)

https://www.tensorflow.org/install/source#common_installation_problems

本人配置(官网下载需注册,而且很慢,所有下载后的工具包过段时间整理后放网盘,到时补充链接):

Anaconda3-5.3.1-Linux-x86_64.sh
cuda_10.0.130_410.48_linux.run
cudnn-10.0-linux-x64-v7.4.2.24.tgz
glibc-2.23.tar.gz
NVIDIA-Linux-x86_64-410.129-diagnostic.run
tensorflow_gpu-1.14.0-cp37-cp37m-manylinux1_x86_64.whl

4、cuda 10.0安装

(1)安装

[root@65-35-GPU Tools]# chmod +x ~/cuda_10.0.130_410.48_linux.run
[root@65-35-GPU Tools]# ./cuda_10.0.130_410.48_linux.run
Do you accept the previously read EULA?
accept/decline/quit: accept

Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 410.48?
(y)es/(n)o/(q)uit: no

Install the CUDA 10.0 Toolkit?
(y)es/(n)o/(q)uit: yes

Enter Toolkit Location
 [ default is /usr/local/cuda-10.0 ]: 

Do you want to install a symbolic link at /usr/local/cuda?
(y)es/(n)o/(q)uit: no

Install the CUDA 10.0 Samples?
(y)es/(n)o/(q)uit: no

(2)添加环境变量(~/.bashrc)

[root@65-35-GPU Tools]# export PATH="/usr/local/cuda-10.0/bin:$PATH"
[root@65-35-GPU Tools]# export LD_LIBRARY_PATH="/usr/local/cuda-10.0/lib64:$LD_LIBRARY_PATH"

(3)安装验证

[root@65-35-GPU Tools]# nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Sat_Aug_25_21:08:01_CDT_2018
Cuda compilation tools, release 10.0, V10.0.130

5、cudnn 7.4.2安装

(1)下载解压

(2)文件替换

[root@65-35-GPU Tools]# cp cuda/include/cudnn.h /usr/local/cuda/include/

[root@65-35-GPU Tools]# cp cuda/lib64/libcudnn* /usr/local/cuda/lib64/

6、NVIDIA驱动更新

[root@65-35-GPU Tools]# ./NVIDIA-Linux-x86_64-410.129-diagnostic.run

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值