我使用python在anaconda中运行了Tensorflow命令,它给了我一个错误ImportError: DLL加载失败:找不到指定的模块。尽管,我已经安装了带有conda命令的tensorflow-gpu并检查了包,但是我无法解决问题。以下是软件包及其版本的清单:
**Name Version BuildChanel**
a) Conda 4.5.12 py36_0
b) cudnn 7.1.4
在路径:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\cudart64_101.dll中有一个DLL文件,但是TensorFlow似乎没有识别它:
2020-03-11 14:39:19.815880: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
我
我正在学习初学者的TensorFlow教程,并尝试分类。有一堆GPU错误。我已经安装了cuda工具以及我最新的GPU驱动程序。这是输出:
tensorflow/stream_executor/platform/default/dso_loader.cc:60] 2021-01-13 15:42:42:24.186914:W 无法加载动态库‘cudart 64_110.dll’;dlerror: cudart64_110.dll not found 2021-01-13 15:42:24.187065: i tensorflow/stream_executor/cuda/cudart_stub.
我正在一个项目中使用CUDA驱动程序API。当我在没有NVIDIA GPU的PC上执行这个项目时,它显示"nvcuda.dll I found“。
问题是:此DLL仅随GPU驱动程序一起分发,而不像在Runtime API中那样,您可以将所需的DLL与可执行文件一起放置。我需要在运行时加载这个DLL,如果它不存在,我就知道CUDA不可用。我正在使用Visual Studio 2012专业版。
有没有办法做到这一点?
当我尝试在我的anaconda环境中安装tensorflow-gpu时遇到了一个问题。
当我在导入tensorflow之后测试图形处理器的可用性时,似乎缺少.dll库(cusolver64_10.dll,通常随CUDA包提供),测试失败。
从Google那里,我看到一个解决方案是从以前版本的CUDA中复制文件。这是正确的做法吗?
CUDA和CUDA DNN是按照Nvidia文档和测试正常安装的(关于CUDA文件夹中的示例)。
我的系统信息:
OS : Windows 10
Visual Studio Community 2019
Cuda toolkit : Cuda compilation
无法执行cudafy (BLAS)示例。
联机失败:GPGPUBLAS = GPGPUBLAS.Create(gpu);
消息:不支持指定的方法。
堆栈跟踪:
at Cudafy.Maths.BLAS.CudaBLAS..ctor(GPGPU gpu)
at Cudafy.Maths.BLAS.GPGPUBLAS.Create(GPGPU gpu)
at CUDAFY_Samples.Program.Main(String[] args) in d:\@Igor\SW\GPU\CUDAFY-Samples\Program.cs:line 22
at System.App
我的tensorflow-gpu是2.0,cuda 10.0 cudnn 7.6,当我使用tf.test.is_gpu_available()时,它显示我的图形处理器可用,但当我使用pycharm运行cnn net时,它显示找不到cudart64_100.dll‘文件,实际上,使用anaconda激活环境,当我导入tensorflow时,它显示加载成功,然后当我使用pycharm运行时,它显示错误
2019-11-23 15:42:51.795489: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could n
我想将我的GPU用于Tensorflow。
我试过这个
不幸的是,我一直收到一个错误的Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found。我该如何解决这个问题呢?Python-版本: 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
在anaconda下创建了tensorflow环境之后,我安装了tensorflow-gpu。然后,我试图导入tensorflow,以验证它是否已正确安装,但得到了以下错误:
ImportError: Could not find 'cudnn64_7.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Note that installing cuDNN is a separate step
我已经将tensorflow v.2.0降级到v.1.15,然后我在ipython中输入了一些代码进行检查。但是,cudnn64_7.dll还存在一些问题
(base) C:\Users\puppy>ipython
Python 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.8.0 -- An enhanced