On Tue, 17 Apr 2012 17:16:40 +0200, Dan Goodman <[email protected]> 
wrote:
> Hi there,
> 
> I can build and install PyCUDA fine, even 'import pycuda' works, but as 
> soon as I run any of the tests or do 'import pycuda.autoinit' I get this 
> error:
> 
> In [1]: import pycuda.autoinit
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call last)
> 
> /home/dan/Downloads/<ipython console> in <module>()
> 
> /usr/local/lib/python2.7/dist-packages/pycuda-2011.2.2-py2.7-linux-x86_64.egg/pycuda/autoinit.py
>  
> in <module>()
>        2
>        3 # Initialize CUDA
> 
>        4 cuda.init()
>        5
>        6 from pycuda.tools import make_default_context
> 
> /usr/local/lib/python2.7/dist-packages/pycuda-2011.2.2-py2.7-linux-x86_64.egg/pycuda/driver.py
>  
> in <module>()
> ----> 2     from pycuda._driver import *
>        3 except ImportError, e:
>        4     if "_v2" in str(e):
>        5         from warnings import warn
>        6         warn("Failed to import the CUDA driver interface, with 
> an error "
> 
> ImportError: 
> /usr/local/lib/python2.7/dist-packages/pycuda-2011.2.2-py2.7-linux-x86_64.egg/pycuda/_driver.so:
>  
> undefined symbol: cuIpcGetMemHandle
> 
> I'm on a fresh install of Linux Mint 12, 64 bit, running Python 2.7. I 
> installed the latest Nvidia drivers using Linux Mint's software manager 
> (might this be the problem? too old drivers?) and CUDA 4.1.28 (too 
> recent a version for PyCUDA?). I downgraded gcc to gcc-4.4.

Your CUDA headers must not match your libcuda.so--find the header file
and libcuda, and do a 'dpkg --search' on them to find out what package
they're from. Compare versions.

HTH,
Andreas

Attachment: pgpRKXB5ARFPO.pgp
Description: PGP signature

_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to