Hi all,
I just installed pycuda and tried to run a pycuda example. Its first line
'import pycuda.driver as cuda' gives an error. I have searched before
posting this and found a thread
http://pycuda.2962900.n2.nabble.com/ImportError-No-module-named-driver-td4099529.html
here
This was solution given: "It turns out, if you try to import any of the
pycuda files while you are in the directory that you extracted the pycuda
tar.gz file (for me it was ~/Desktop/pycuda-0.94.2) then they will fail with
the above error. All you have to do to fix this is be in another directory.
Hopefully this saves someone some time. "
like he said i got error when i was in pycuda-2011.2.2:
user@ubuntu:~/pycuda-2011.2.2$ python
Python 2.7.3 (default, Apr 20 2012, 22:39:59)
[GCC 4.6.3] on linux2
>>> import pycuda.driver as cuda
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pycuda/driver.py", line 2, in <module>
from pycuda._driver import *
ImportError: No module named _driver
But i got error here too:
user@ubuntu:~$ python
>>> import pycuda.driver as cuda
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/usr/local/lib/python2.7/dist-packages/pycuda-2011.2.2-py2.7-linux-x86_64.egg/pycuda/driver.py",
line 2, in <module>
from pycuda._driver import *
ImportError: libcurand.so.4: wrong ELF class: ELFCLASS32
I am not sure what he meant by different directory. Any suggestion/thoughts
?
edit: why html code didn't work ?
--
View this message in context:
http://pycuda.2962900.n2.nabble.com/ImportError-No-module-named-driver-tp7574637.html
Sent from the PyCuda mailing list archive at Nabble.com.
_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda