tensorflow-gpu:Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found


之前下載了cuda11.1想要使用tensorflow的gpu版本,不料調試的時候出了問題,使用tf.test.is_gpu_available()命令測試的時候出現了如下錯誤:

錯誤日志:

WARNING:tensorflow:From <ipython-input-2-17bb7203622b>:1: is_gpu_available (from tensorflow.python.framework.test_util) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.config.list_physical_devices('GPU')` instead.
2021-02-13 23:53:43.607123: 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.
2021-02-13 23:53:43.621244: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library nvcuda.dll
2021-02-13 23:53:43.650897: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce GTX 1050 Ti computeCapability: 6.1
coreClock: 1.62GHz coreCount: 6 deviceMemorySize: 4.00GiB deviceMemoryBandwidth: 104.43GiB/s
2021-02-13 23:53:43.658694: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudart64_110.dll
2021-02-13 23:53:43.670802: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cublas64_11.dll
2021-02-13 23:53:43.678653: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cublasLt64_11.dll
2021-02-13 23:53:43.687182: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cufft64_10.dll
2021-02-13 23:53:43.696485: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library curand64_10.dll
2021-02-13 23:53:43.702571: 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-02-13 23:53:43.716161: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cusparse64_11.dll
2021-02-13 23:53:43.721301: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudnn64_8.dll
2021-02-13 23:53:43.728528: 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...
2021-02-13 23:53:43.820151: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1261] Device interconnect StreamExecutor with strength 1 edge matrix:
2021-02-13 23:53:43.825857: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1267] 0
2021-02-13 23:53:43.829518: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1280] 0: N
2021-02-13 23:53:43.832609: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set
Out[2]: False

 

使用的版本如下:

 

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

上述錯誤也表示gpu版本並不能使用,但是看到了錯誤

 

 字面意思就是少cusolver64_10.dll的動態鏈接庫,少庫肯定要去文件里找

打開自己的cuda安裝目錄,依次打開../NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin,找到問題所在了

 

 后綴名字是11,但是我們需要的是10,嘗試更改了文件為cusolver64_10.dll,運行

 

 沒想到會是這個問題

呵呵,你*的

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

網上也有說版本不兼容的問題,降版本是一定可以解決問題的,但我的習慣是下載任何東西都盡量保持穩定最新的。。。

看后面能不能遇見啥新問題吧。。

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

貌似也沒碰到啥問題了。。。。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM