Tensorflow-gpu 2.4.0+cuda11.1缺失cusolver64_10.dll‘

硬件及环境:

2070s+win10+py3.6+tensorflow-gpu 2.4.0+cuda11.1

问题:

检查tf-gpu版本以及可用性时出现缺失cusolver64_10.dll的情况

import tensorflow as tf
# 打印当前版本
print(tf.__version__)
# 打印gpu是否可用
print(tf.test.is_gpu_available())
2021-03-04 10:12:07.170133: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library curand64_10.dll
2021-03-04 10:12:07.171505: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found
2021-03-04 10:12:07.179776: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cusparse64_11.dll
2021-03-04 10:12:07.183574: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudnn64_8.dll
2021-03-04 10:12:07.183685: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1757] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
False

解决办法:

win10 下将cusolver64_10.dll粘贴到cuda安装的默认目录 \bin下

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin

附上cusolver64_10.dll下载地址

链接:https://pan.baidu.com/s/1EN0mQjmR_NNgF60Bc1jkPw
提取码:8m6z
 

你可能感兴趣的:(bug日常,cuda,python,tensorflow,gpu)