pycuda._driver 导入错误 (Windows)
pycuda._driver import error (Windows)
我正尝试在我的 windows 7 机器上 运行 pycuda。我安装了以下-
1. Python2.7.9
2。 cuda_7.0.28_windows
3。 numpy-1.9.2-win32-superpack-python2.7
4. pycuda-2014.1+cuda6514-cp27-none-win32(whl 来自 christopher gohlke 的库页面)
5. Visual Studio 2013 社区版
上面的所有安装都是成功的,但是当我运行下面的代码时(它的代码很长但是导入语句应该足以描述问题)
from __future__ import division
import numpy as np
import pycuda.driver as drv
from pycuda.compiler import SourceModule
import pycuda.autoinit
import numpy.testing
我收到以下错误-
Traceback (most recent call last):
File "D:\trash\cuda_test.py", line 3, in <module>
import pycuda.driver as drv
File "C:\Python27\lib\site-packages\pycuda\driver.py", line 2, in <module>
from pycuda._driver import * # noqa
ImportError: DLL load failed: The specified module could not be found.
知道问题出在哪里吗??
解决方案涉及安装库支持的 CUDA 版本。我有一个更高的版本。 pycuda库的文件名可以分解如下来识别CUDA和Python[=16=的版本] 支持-
Filename: pycuda-2014.1+cuda6514-cp27-none-win32
Python version supported: 2.7 (from cp27)
CUDA version supported: 6.5.14 (from cuda6514)
我正尝试在我的 windows 7 机器上 运行 pycuda。我安装了以下-
1. Python2.7.9
2。 cuda_7.0.28_windows
3。 numpy-1.9.2-win32-superpack-python2.7
4. pycuda-2014.1+cuda6514-cp27-none-win32(whl 来自 christopher gohlke 的库页面)
5. Visual Studio 2013 社区版
上面的所有安装都是成功的,但是当我运行下面的代码时(它的代码很长但是导入语句应该足以描述问题)
from __future__ import division
import numpy as np
import pycuda.driver as drv
from pycuda.compiler import SourceModule
import pycuda.autoinit
import numpy.testing
我收到以下错误-
Traceback (most recent call last):
File "D:\trash\cuda_test.py", line 3, in <module>
import pycuda.driver as drv
File "C:\Python27\lib\site-packages\pycuda\driver.py", line 2, in <module>
from pycuda._driver import * # noqa
ImportError: DLL load failed: The specified module could not be found.
知道问题出在哪里吗??
解决方案涉及安装库支持的 CUDA 版本。我有一个更高的版本。 pycuda库的文件名可以分解如下来识别CUDA和Python[=16=的版本] 支持-
Filename: pycuda-2014.1+cuda6514-cp27-none-win32
Python version supported: 2.7 (from cp27)
CUDA version supported: 6.5.14 (from cuda6514)