- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在路径中有一个 DLL 文件:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\cudart64_101.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
>>> l = os.environ['PATH'].split(';')
>>> for s in l:
... print(s)
...
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin
ctypes
手动包含它它成功加载:
>>> import ctypes
>>> hllDll = ctypes.WinDLL("C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.1\\bin\\cudart64_101.dll")
>>> import tensorflow as tf
2020-03-11 15:05:26.907300: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
最佳答案
就我而言,问题出在 python 是从 安装的。 Windows 商店 !
见 @smreichling对 tensorflow's GitHub (issue 36111) 的评论:
The problem turned out to be that the version of python I had installed was the one from the Microsoft Store and not the one from python.org. As it turns out, apps installed from the Microsoft Store are sandboxed. Windows restricts where they can load DLLs from pretty severely. Among the restrictions: Windows does not search the directories in the
PATH
env var for the DLLs. So app store python will never be able to find CUDA DLLs this way.
关于python - Tensorflow 无法识别 cudart64_101.dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60636785/
这个命令具体做什么: make EXTRA_NVCCFLAGS=--cudart=shared 我是用来实现rCUDA平台的,是用来编译文件的吗? 谢谢。 最佳答案 EXTRA_NVCCFLAGS=-
我使用 PyCharm 进行远程调试,客户端 Win10,服务器 Ubuntu 16。在 Ubuntu 机器上,我正确安装了 Cuda 8.0,以及 python 2.7 和 tensorflow 1
我刚刚开始使用 Julia 的 CUDArt 包来管理 GPU 计算。我想知道如何确保如果我从 gpu 中提取数据(例如使用 to_host() ),我不会在对它执行所有必要的计算之前这样做。 通过一
为了进行数学运算,我添加了头文件 #include #include 但是当我编译它时,它开始出现以下错误。我该怎么办? p.s .: CUDA 5.0,VS2010 NVIDIA GPU Com
由于一个模糊的原因,在我的项目中添加 cudart.lib 后,我对 IDXGIOutput5::DuplicateOutput1() 的调用失败并出现错误 0x887a0004 (DXGI_ERRO
我是一名优秀的程序员,十分优秀!