修复不为 Tensorflow GPU 加载动态库 [英] Fix not load dynamic library for Tensorflow GPU

查看:512
本文介绍了修复不为 Tensorflow GPU 加载动态库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将 GPU 用于 Tensorflow.

I want to use my GPU for Tensorflow.

我试过这个无法在仅 tensorflow CPU 的安装上加载动态库cudart64_101.dll"

不幸的是,我不断收到错误 无法加载动态库 'cudart64_110.dll';dlerror: cudart64_110.dll 未找到.我怎样才能解决这个问题?Python 版本:3.8.3,CUDA 10.1

Unfortunately, I keep getting an error Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found. How can I fix this? Python-version: 3.8.3, CUDA 10.1

2020-11-03 12:30:28.832014: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2020-11-03 12:30:28.832688: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cublas64_11.dll'; dlerror: cublas64_11.dll not found
2020-11-03 12:30:28.833342: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cublasLt64_11.dll'; dlerror: cublasLt64_11.dll not found
2020-11-03 12:30:28.833994: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10.dll not found
2020-11-03 12:30:28.834645: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'curand64_10.dll'; dlerror: curand64_10.dll not found
2020-11-03 12:30:28.835297: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found
2020-11-03 12:30:28.835948: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cusparse64_11.dll'; dlerror: cusparse64_11.dll not found
2020-11-03 12:30:28.836594: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found
2020-11-03 12:30:28.836789: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1761] 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...
2020-11-03 12:30:28.837575: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2020-11-03 12:30:28.838495: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1265] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-11-03 12:30:28.838708: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1271]      
2020-11-03 12:30:28.838831: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set

推荐答案

好吧,您可以看到您的 Tensorflow 安装正在寻找版本 11、10 的 Cuda 库,而您有 10.1.因此,为了解决此问题,请安装正确的 Cuda 版本.为什么要寻找 3 个不同的版本,我不知道.但是您可以在此处找到 Cuda、Tensorflow 和 CUDNN 的有效组合.

Well, you can see that your Tensorflow installation is looking for Cuda libraries of version 11, 10, while you have 10.1. So in order to fix this, install the proper Cuda version. Why is it looking for 3 different versions, I have no idea. But you can find valid combinations of Cuda, Tensorflow, and CUDNN here.

从 Cuda 版本中删除了 8,Tensorflow 实际上是在寻找 CUDNN 版本 8.所以不要忘记安装 CUDNN(我的猜测是你正在安装最新版本的 Tensorflow -> 这就是为什么它寻找最新的 Cuda 和 CUDNN 版本.)

Removed 8 from the Cuda version, Tensorflow is actually looking for CUDNN version 8. So don't forget to install CUDNN as well (my guess is that you are installing the latest version of Tensorflow -> that's why is it looking for the latest Cuda and CUDNN releases.)

这篇关于修复不为 Tensorflow GPU 加载动态库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆