阿里云计算型gn5i服务器+conda管理+tensroflow2.0 GPU稳定版 + cuda10.0+cudnn 安装采坑
1.公司为阿里云计算型gn5i服务器,显卡驱动如果手动安装需找到对应版本https://help.aliyun.com/document_detail/108502.html?spm=a2c4g.11186623.6.609.66f4323ao6etmq
2.cuda一定一定要安装10.0对应tensorflow2.0版本https://developer.nvidia.com/cuda-10.0-download-archive?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal
注释:安装过程中不要选择安装驱动(不要勾最后那个)
3.cudnn对应cuda版本,解压后把cudnn对应cuda目录文件拷贝.
4.环境变量:安装就配好了,只需path加C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\lib\x64
5.conda
conda create --name tf2.0 python=3.7 # “tf2.0”是你建立的Conda虚拟环境的名字 conda activate tf2.0 # 进入名为“tf2.0”的虚拟环境
6.
pip install tensorflow-gpu==2.0.0 # TensorFlow GPU版本,需要具有NVIDIA显卡及正确安装驱动程序,详见后文
7.
重点:cudaGetDevice() failed. Status: cudaGetErrorString symbol not found. 报错解决方案
安装各种cudatoolkit : conda install cudatoolkit=8.0
conda search cudnn conda install cudnn=7.6.4
8.测试 命令:mvcc -V
代码:from tensorflow.python.client import device_lib
device_lib.list_local_devices()
完成!!!!!!!!!!