Solution for missing TensorFlow DLL file: cudnn64_8.dll not found&cusolver64_10.dll not found

The purpose of this article: to solve the problems of cublas64_11.dll not found, cublasLt64_11.dll not found, cufft64_10.dll not found, curand64_10.dll not found, cusolver64_10.dll not found, cudnn64_8.dll not found.

1 Problem description, test procedure:

import tensorflow as tf 
hello =tf.constant('hello, tensorflow')
print('Hello python')
sess = tf.compat.v1.Session()

The error is as follows:

2021-03-22 20:57:07.173514: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cublas64_11.dll'; dlerror: cublas64_11.dll not found
2021-03-22 20:57:07.197352: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cublasLt64_11.dll'; dlerror: cublasLt64_11.dll not found
2021-03-22 20:57:07.206373: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10.dll not found
2021-03-22 20:57:07.229122: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'curand64_10.dll'; dlerror: curand64_10.dll not found
2021-03-22 20:57:07.246726: 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-22 20:57:07.254984: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cusparse64_11.dll'; dlerror: cusparse64_11.dll not found
2021-03-22 20:57:07.261778: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found
2021-03-22 20:57:07.289064: 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...

The pictures are as follows:

2 Solution-CUDA download

The problem of cudart64_110.dll not found was solved last time, and now so many problems have emerged. Is it downloaded one by one?

When I was looking for a solution online, I re-downloaded CUDA and installed it.

CUDA download address: https://developer.nvidia.com/zh-cn/cuda-downloads

However, when the program is executed, although there are fewer problems, there are still.

So, I looked for the missing things one by one.

3 Solution-search and installation of missing DLL series

I found it:

DLL folder, link: https://pan.baidu.com/s/1iO9ojtf-oPBtzG9wbQSxpw Extraction code: koj7

cusolver64_10.dll, link: https://pan.baidu.com/s/1om_-n18iKZU_YRjJ1JUwyQ  extraction code: 7tdl (CSDN:

Learn from Cai Xukun to play wild and provide a download link https://blog.csdn.net/weixin_45284801/article/details/109691589 )

cudnn64_7.dll, link: https://pan.baidu.com/s/1qRr9HSFgF8mT8vty9m1rXA , extraction code: p09o

cudnn64_8.dll, cudnn-11.1-windows-x64-v8.0.4.30.zip, https://pan.baidu.com/s/1cqCINlm0_ZaK_otBwybM8w , extraction code: 1kge

In addition, the following four cndnn6/7/8/9 versions are available, the link is https://pan.baidu.com/s/10Bm48r7-qruAAzh9-wgPig#list/path=%2F , extraction code: bsir

cudnn-10.1-windows10-x64-v8.0.4.30.zip or https://pan.baidu.com/s/1nOhziNH2_vRee6i5sM-zEw , extraction code: 0f1g

cudnn-11.1-windows-x64-v8.0.4.30.zip and cuda_11.1.0_456.43_win10.exe  https://pan.baidu.com/s/1ufw1_im8P88MbwD5aowBAg#list/path=%2F extraction code: bz0s

Then, put these two files in the C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin folder, or put them in C:\Windows\System32. These three files are relatively large and may take some time to download.

All the dll series file missing problems are solved.

Guess you like

Origin blog.csdn.net/a1456123a/article/details/115098630