cudaGetDevice() failed. Status:cudaGetErrorString symbol not found.
使用conda 安装 tensorflow-gpu2.0.0 时,conda会自动安装对应版本的cuda和cudnn。但是在使用时报错。
InternalError: cudaGetDevice() failed. Status: cudaGetErrorString symbol not found.
该错误其实是因为缺少了dll文件 cudart64_100.dll(不同版本缺的可能不一样)。
[I 19:39:43.095 NotebookApp] Replaying 3 buffered messages
2020-08-25 19:39:45.615573: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_100.dll'; dlerror: cudart64_100.dll not found
实际这个dll文件conda下载在了 Anaconda3\envs\对应虚拟环境名\Library\bin 目录(如果是安装在虚拟环境中的话)。也许这个目录没有配环境变量的原因导致检查不到?
- 给这个目录配环境变量(没试过)
- 将该dll复制到
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common目录下 (这个好使)
在使用conda安装并配置TensorFlow-GPU2.0.0时遇到cudaGetDevice()失败的问题,由于缺少cudart64_100.dll等DLL文件导致。本文介绍了解决方案,包括调整环境变量和复制DLL文件到指定目录。
2062

被折叠的 条评论
为什么被折叠?



