1.tensflow、cuda、cudnn版本匹配关系
https://blog.csdn.net/yuejisuo1948/article/details/81043962
2.安装cuda
3.查看
4.重要链接
安装cuda 10
一、硬件条件
(**) For Ubuntu LTS on x86-64, both the HWE kernel (e.g. 4.13.x for 16.04.4) and the server LTS kernel (e.g. 4.4.x for 16.04) are supported in CUDA 10.0. Visit https://wiki.ubuntu.com/Kernel/Support for more information.
1.相关内容查看
1.1 是否含有cuda支持的gpu
lspci | grep -i nvidia
有内容说明已经配置了GPU和相关驱动
1.2 查看Linux版本
uname -m && cat /etc/*release
1.3 查看GCC版本
gcc --version
1.4 查看kernel版本
uname -r
不匹配cuda10的要求
1.4.1 内核降级
https://blog.csdn.net/qq_38262728/article/details/88742198
1.5 验证kernel相应版本的kernel headers and development packages是否安装
2. python和 tensorflow gpu的安装
GPU: 1.14.0
python: 3.7
cudnn: 7.6.3
cuda: 10.0
二、配置pycharm的远程执行
只需要配置解析器就可以了,不需要配置run。但是,如果程序使用了gpu,需要在pycharm中添加环境变量
LD_LIBRARY_PATH(/usr/local/cuda-10.0/lib64),添加方法如下: