[PyCUDA] pycuda installation
Tomasz Rybak
bogomips at post.pl
Mon Sep 26 07:37:23 PDT 2011
Dnia 2011-09-26, pon o godzinie 16:00 +0200, nicola.zaurino at 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 <bogomips at post.pl> GPG/PGP key ID: 2AD5 9860
Fingerprint A481 824E 7DD3 9C0E C40A 488E C654 FB33 2AD5 9860
http://member.acm.org/~tomaszrybak
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20110926/4a11f662/attachment.pgp>
More information about the PyCUDA
mailing list