事发条件
- TensorFlow 2.4.0
- CUDA V11.1
事发现场
>>> import tensorflow
>>> tensorflow.test.is_gpu_available()
2021-02-04 20:54:08.955295: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce RTX 2070 computeCapability: 7.5
coreClock: 1.44GHz coreCount: 36 deviceMemorySize: 8.00GiB deviceMemoryBandwidth: 417.29GiB/s
......
2021-02-04 20:54:08.958608: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found
解决方法
他要CUDA10的库cusolver64_10.dll
但我们安装的是11版本的库cusolver64_11.dll
- 解决方法1: 把
cusolver64_11.dll
复制一份并改名为cusolver64_10.dll
- 解决方法2: 将
cusolver64_10.dll
连接到cusolver64_11.dll
https://github.com/tensorflow/tensorflow/issues/44291#issuecomment-728085147
文章评论