Discussion:
[PyCUDA] Installation error on OSX 10.9.5 with CUDA 6.5
Guillaume Dumas
2014-10-20 19:15:34 UTC
Permalink
Hi!

I am struggling with the installation of pycuda for hours, trying almost
every pieces of advices I have found on the internet unsuccesfully...

Basically, I am blocked with an error when I import the module as follow:

In [1]: import pycuda.driver as cuda
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-b2dd91e7bf60> in <module>()
----> 1 import pycuda.driver as cuda

/Users/kwisatz/Downloads/pycuda-2014.1/pycuda/driver.py in <module>()
1 try:
----> 2 from pycuda._driver import * # noqa
3 except ImportError, e:
4 if "_v2" in str(e):
5 from warnings import warn

ImportError: No module named _driver

I follow the instructions here
<http://wiki.tiker.net/PyCuda/Installation/Mac#Installing_PyCUDA_on_Mac_OS_X_10.9_Mavericks_with_CUDA_6.0>
but
I feat the *siteconf.py *file should be adapted for the last version of
CUDA (i.e. 6.5, 64bit).

During the building of the module, I got some warnings:
http://pastebin.com/mMVWs0XK

Thanks for your help,

Guillaume
Ashwin Srinath
2014-10-20 20:17:08 UTC
Permalink
If I recall correctly, you shouldn't try importing pycuda.driver from the
same directory that you installed pycuda. Try `cd`ing into another
directory and then importing?
Post by Guillaume Dumas
Hi!
I am struggling with the installation of pycuda for hours, trying almost
every pieces of advices I have found on the internet unsuccesfully...
In [1]: import pycuda.driver as cuda
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-b2dd91e7bf60> in <module>()
----> 1 import pycuda.driver as cuda
/Users/kwisatz/Downloads/pycuda-2014.1/pycuda/driver.py in <module>()
----> 2 from pycuda._driver import * # noqa
5 from warnings import warn
ImportError: No module named _driver
I follow the instructions here
<http://wiki.tiker.net/PyCuda/Installation/Mac#Installing_PyCUDA_on_Mac_OS_X_10.9_Mavericks_with_CUDA_6.0> but
I feat the *siteconf.py *file should be adapted for the last version of
CUDA (i.e. 6.5, 64bit).
http://pastebin.com/mMVWs0XK
Thanks for your help,
Guillaume
_______________________________________________
PyCUDA mailing list
http://lists.tiker.net/listinfo/pycuda
Loading...