Dnia 2011-09-26, pon o godzinie 16:00 +0200, nicola.zaur...@virgilio.it
pisze:
>  Hi everyone,
> I'm a student who is searching for the right way to install pycuda on
> his Laptop.
> I've tried to install pycuda following the instructions posted
> here: http://wiki.tiker.net/PyCuda/Installation/Windows
> I have Windows 7 64 bit with a Nvidia GeForce 9600m GT.
> When I start Idle in Python 2.7 and I try to run the following code:
> 
> 
> >>import pycuda.driver
>  
> it shows :
> 
> 
> 
> 
> Traceback (most recent call last):
>   File "<pyshell#4>", line 1, in <module>
>     import pycuda.driver
>   File "C:\Python27\lib\site-packages\pycuda\driver.py", line 2, in
> <module>
>     from pycuda._driver import *
> ImportError: DLL load failed: Impossibile trovare il modulo
> specificato.
> >>> 
> 

I am using Linux, but will try to point you in the right direction.
To access CUDA functions PyCUDA has some part in C which is
called from Python and calls appropriate CUDA functions. This
C code during PyCUDA compilation is put into one library (DLL
on Windows, SO on Linux) and is accessed by PyCUDA using
pycuda._driver (line from pycuda._driver import *).
It looks like in your case Python interpreter cannot find
this DLL. Check if you have installed PyCUDA into directory
present in PYTHONPATH - if not, either install it into
appropriate directory, or add PyCUDA installation directory
to PYTHONPATH.

Another source of problems can be trying to run programs
from PYCUDA source tree. This tree contains "pycuda" directory,
but this directory does not contain DLL (which is build
in different place). In result Python finds some parts
of PyCUDA but not other - and you have result similar
to yours.

Hope it helps,

-- 
Tomasz Rybak <bogom...@post.pl> GPG/PGP key ID: 2AD5 9860
Fingerprint A481 824E 7DD3 9C0E C40A  488E C654 FB33 2AD5 9860
http://member.acm.org/~tomaszrybak

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda

Reply via email to