I'm trying to compile some sources for working with my GPU. I use pycuda for this. When I compile source code, I receive some errors from Python:
C:\Users\Dmitriy\wcm>python ws_gpu.py test.dcm
Traceback (most recent call last):
File "ws_gpu.py", line 2, in <module>
import pycuda.gpuarray as gpu
File "C:\Python27\lib\site-packages\pycuda\gpuarray.py", line 3, in <module>
import pycuda.elementwise as elementwise
File "C:\Python27\lib\site-packages\pycuda\elementwise.py", line 33, in <module>
from pycuda.tools import context_dependent_memoize
File "C:\Python27\lib\site-packages\pycuda\tools.py", line 30, in <module>
import pycuda.driver as cuda
File "C:\Python27\lib\site-packages\pycuda\driver.py", line 2, in <module>
from pycuda._driver import *
ImportError: DLL load failed: ═х эрщфхэ єърчрээ√щ ьюфєы№.
Has anyone encountered a similar problem? How can I solve this? I use Windows 7 64-bit, last driver for my GPU (NVIDIA GT520M) and CUDA Toolkit v.5.0.
This sort of error is almost always because of a broken PyCUDA installation. There is a library file called _driver.dll
which provides bindings to the CUDA driver API. The error message is coming because that dll can either not be found or the libraries it depends on (ie. CUDA) can't be loaded. I can't say more because I can't read the cryllic error text you posted.
One way of diagnosing this sort of problem is to try the following in an interactive python shell:
import pycuda
pycuda.__file__
The second command will tell you where the root path for the active PyCUDA installation is (taken from a mailing list post). Searching in that path will find you the locate of the _driver.dll
and running a dependency diagnostic tool on the dll file will show what can or cannot be found. If that doesn't work I recommend taking your question to the PyCUDA mailing list.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With