Hi Gaston, On Sun, 24 Apr 2011 23:27:33 -0400, Gaston Fiore <[email protected]> wrote: > I've just installed PyCUDA and I'm getting an error when trying to run > hello_gpu.py. Do you know what is going wrong? Thanks a lot. > > gafiore@cuda-5-1 project> python hello_gpu.py > /home/gafiore/local/lib64/python2.4/site-packages/pytools-2011.3-py2.4.egg/pytools/__init__.py:299: > DeprecationWarning: pytools.decorator is deprecated and will be > removed in pytools 12. Use the 'decorator' module directly instead. > @my_decorator > /home/gafiore/local/lib64/python2.4/site-packages/pytools-2011.3-py2.4.egg/pytools/__init__.py:321: > DeprecationWarning: pytools.decorator is deprecated and will be > removed in pytools 12. Use the 'decorator' module directly instead. > @my_decorator > Traceback (most recent call last): > File "hello_gpu.py", line 24, in ? > block=(400,1,1)) > File > "/home/gafiore/local/lib64/python2.4/site-packages/pycuda-0.94.2-py2.4-linux-x86_64.egg/pycuda/driver.py", > line 159, in function_call > handlers = func.param_set(*args) > File > "/home/gafiore/local/lib64/python2.4/site-packages/pycuda-0.94.2-py2.4-linux-x86_64.egg/pycuda/driver.py", > line 134, in function_param_set > from pycuda._pvt_struct import pack > ImportError: > /home/gafiore/local/lib64/python2.4/site-packages/pycuda-0.94.2-py2.4-linux-x86_64.egg/pycuda/_pvt_struct.so: > undefined symbol: PyInt_AsSsize_t > gafiore@cuda-5-1 project>
Which version of PyCUDA are you building? If 0.94.2, try getting the one From git. There's a change in there that might help you. Andreas
pgp0moUQhPwm8.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
