I had similar problems, which ended up being due to version mismatches
between boost, python, and numpy.  I ended up rebuilding numpy & boost
myself, not relying on packages except for the python installation.

I don't remember seeing the "libcuda.dylib not found" error - did you
add /usr/local/cuda/lib to your LD_LIBRARY_PATH?

- bryan

ps. BTW, maybe we should meet up sometime - we could have a PyCUDA
users @ Berkeley meeting...  =)

On Tue, Aug 18, 2009 at 10:22 PM, Ariel Rokem<[email protected]> wrote:
> Hi everyone,
>
> after some wrangling, I managed to build boost and even install pycuda
> on my system (dual core macbook pro, with GeForce 8600M GT, Mac OS
> 10.5.8). I could import pycuda:
>
> In [1]: import pycuda
>
> In [2]: pycuda.VERSION
> Out[2]: (0, 93)
>
> But, when I try to import pycuda.autoinit, I got the following error:
>
>  In [3]: import pycuda.autoinit
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call last)
>
> /Users/arokem/<ipython console> in <module>()
>
> /Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/pycuda-0.93-py2.5-macosx-10.3-fat.egg/pycuda/autoinit.py
> in <module>()
>      2 import pycuda.tools
>      3
>      4 cuda.init()
>      5 assert cuda.Device.count() >= 1
>      6
>
> /Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/pycuda-0.93-py2.5-macosx-10.3-fat.egg/pycuda/driver.py
> in <module>()
>      2
>      3
>      4
>      5
>      6 class CompileError(Error):
>
> ImportError: 
> dlopen(/Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/pycuda-0.93-py2.5-macosx-10.3-fat.egg/pycuda/_driver.so,
> 2): Library not loaded: @rpath/libcuda.dylib
>  Referenced from:
> /Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-packages/pycuda-0.93-py2.5-macosx-10.3-fat.egg/pycuda/_driver.so
>  Reason: image not found
>
> </Traceback>
>
>
> This seemed like something there was looking for the library
> libcuda.dylib. This library happened to be, in my system under
> /usr/local/cuda/lib, so I made a copy of this library under
> /usr/local/lib
>
> Now, still no problem to import pycuda, but when I try to import
> pycuda.autoinit, I get the following error:
>
> In [2]: import pycuda.autoinit
> Fatal Python error: Interpreter not initialized (version mismatch?)
> Abort trap
>
> After that, the ipython session closes and I get a system message that
> python quit unexpectedly.
>
> Does anyone know what this is about? I saw that others on the list had
> similar problems recently. Has anyone managed to solve this issue?
> Other possibly pertinent information is that I built the Boost
> libraries from source and that the python I am using is EPD 4.3 (those
> things might or might not be related to this problem).
>
> Thanks!
>
> Ariel
>
>
> --
> Ariel Rokem
> Helen Wills Neuroscience Institute
> University of California, Berkeley
> http://argentum.ucbso.berkeley.edu/ariel
>
> _______________________________________________
> PyCUDA mailing list
> [email protected]
> http://tiker.net/mailman/listinfo/pycuda_tiker.net
>

_______________________________________________
PyCUDA mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net

Reply via email to