Thomas,

hmm--'image not found'. Not sure what that means. My MacOS-fu is pretty weak, sorry. But maybe one of the MacOS wizards on the list know a solution? I've cc'ed them on this reply.

Andreas

On Donnerstag 06 November 2008, you wrote:

> Andreas,

>

> I attach the output below, I am not sure what to make of it. As you can

> see, LD_LIBRARY_PATH is set to the folder containing the boost_python

> library...

>

> [8:59am] titiwu:~/install/pycuda-0.91rc3/examples% python hello_gpu.py

> Traceback (most recent call last):

> File "hello_gpu.py", line 1, in <module>

> import pycuda.driver as drv

> File "/Library/Frameworks/Python.framework/Versions/2.5.2001/lib/

> python2.5/sit

> e-packages/pycuda-0.91rc3-py2.5-macosx-10.3-i386.egg/pycuda/

> driver.py", line 1,

> in <module>

> from _driver import *

> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/

> 2.5.2001/lib/p

> ython2.5/site-packages/pycuda-0.91rc3-py2.5-macosx-10.3-i386.egg/

> pycuda/_driver.

> so, 2): Library not loaded: libboost_python-xgcc40-mt-1_37.dylib

> Referenced from: /Library/Frameworks/Python.framework/Versions/

> 2.5.2001/lib/py

> thon2.5/site-packages/pycuda-0.91rc3-py2.5-macosx-10.3-i386.egg/pycuda/

> _driver.s

> o

> Reason: image not found

> [8:59am] titiwu:~/install/pycuda-0.91rc3/examples% otool -L /Users/

> wanner/install/boost/lib/libboost_python-xgcc40-mt.dylib

> /Users/wanner/install/boost/lib/libboost_python-xgcc40-mt.dylib:

> libboost_python-xgcc40-mt-1_37.dylib (compatibility version

> 0.0.0, current version 0.0.0)

> /System/Library/Frameworks/Python.framework/Versions/2.5/

> Python (compatibility version 2.5.0, current version 2.5.1)

> /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0,

> current version 7.4.0)

> /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0,

> current version 1.0.0)

> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,

> current version 111.1.1)

> [9:01am] titiwu:~/install/pycuda-0.91rc3/examples% echo $LD_LIBRARY_PATH

> /Users/wanner/install/boost/lib

> [9:02am] titiwu:~/install/pycuda-0.91rc3/examples%

>

> Any help would be appreciated, I am at a loss..

>

> Tom

>

> On Nov 6, 2008, at 12:41 AM, Andreas Klöckner wrote:

> > On Mittwoch 05 November 2008, Thomas Wanner wrote:

> >> Hi,

> >>

> >> I just installed PyCuda on my MacBook Pro running Mac OSX 10.5.5

> >> and the

> >> Enthought Python 2.5 distribution. The installation went fine (or at

> >> least

> >> it seemed to..), but when I tried to run the example hello_gpu.py it

> >> could

> >> not locate one of the dynamic libraries:

> >>

> >> [9:20pm] titiwu:~/install/pycuda-0.91rc3/examples% python

> >> hello_gpu.py

> >> Traceback (most recent call last):

> >> File "hello_gpu.py", line 1, in <module>

> >> import pycuda.driver as drv

> >> File "/Library/Frameworks/Python.framework/Versions/2.5.2001/lib/

> >> python2.5/site-packages/pycuda-0.91rc3-py2.5-macosx-10.3-i386.egg/

> >> pycuda/driver.py", line 1, in <module>

> >> from _driver import *

> >> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/

> >> 2.5.2001/lib/python2.5/site-packages/pycuda-0.91rc3-py2.5-

> >> macosx-10.3-

> >> i386.egg/pycuda/_driver.so, 2): Library not loaded: libboost_python-

> >> xgcc40-mt-1_37.dylib

> >> Referenced from: /Library/Frameworks/Python.framework/Versions/

> >> 2.5.2001/lib/python2.5/site-packages/pycuda-0.91rc3-py2.5-

> >> macosx-10.3-

> >> i386.egg/pycuda/_driver.so

> >> Reason: image not found

> >>

> >> I have LD_LIBRARY_PATH set, so I am not sure what is going on. Has

> >> anyone

> >> run into this?

> >

> > Is the directory with libboost_python-xgcc40-mt-1_37.dylib on the

> > LD_LIBRARY_PATH, too? If so, I've read somewhere that "otool -L

> > <dynamic

> > library>" will tell you something about what's going on.

> >

> > HTH,

> > Andreas

> > _______________________________________________

> > PyCuda mailing list

> > PyCuda@tiker.net

> > http://tiker.net/mailman/listinfo/pycuda_tiker.net

>

> ---------------------------------------------------------------------------

> Thomas Wanner Office: S&T I,

> Room 205

> Department of Mathematical Sciences Phone: +1 (703)

> 993-1472

> George Mason University Fax: +1 (703)

> 993-1491

> 4400 University Drive, MS 3F2 e-mail: wanner@math.gmu.edu

> Fairfax, VA 22030, USA http://math.gmu.edu/~wanner

> ---------------------------------------------------------------------------