I seem to be having the same Mac problem that Thomas Wanner had … any
thoughts?

MacBook Pro Os X 10.5.5

*$ python*
Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
*
$ cat siteconf.py*
BOOST_INC_DIR = ['/Users/semenko/pool/include/boost-1_37']
BOOST_LIB_DIR = ['/Users/semenko/pool/lib']
BOOST_PYTHON_LIBNAME = ['boost_python-xgcc40-mt']
CUDA_ROOT = '/usr/local/cuda'
CUDADRV_LIB_DIR = ['/usr/local/cuda/lib']
CUDADRV_LIBNAME = ['cuda']
CXXFLAGS = []
LDFLAGS = []
*
$ ls /Users/semenko/pool/include/boost-1_37/*
boost
*
$ ls /Users/semenko/pool/include/boost-1_37/boost/*
accumulators
algorithm
aligned_storage.hpp
…………
*
$ ls /Users/semenko/pool/lib/*
libboost_date_time-xgcc40-mt-1_37.a
libboost_date_time-xgcc40-mt-1_37.dylib
libboost_date_time-xgcc40-mt.a
libboost_date_time-xgcc40-mt.dylib
………
*
$ echo $DYLD_LIBRARY_PATH *
/Users/semenko/pool/lib
*
$ make*
ctags -R src || true
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
setup.py build
running build
running build_py
creating build
creating build/lib.macosx-10.5-i386-2.5
creating build/lib.macosx-10.5-i386-2.5/pycuda
copying src/python/__init__.py -> build/lib.macosx-10.5-i386-2.5/pycuda
copying src/python/_kernel.py -> build/lib.macosx-10.5-i386-2.5/pycuda
copying src/python/autoinit.py -> build/lib.macosx-10.5-i386-2.5/pycuda
copying src/python/cumath.py -> build/lib.macosx-10.5-i386-2.5/pycuda
copying src/python/curandom.py -> build/lib.macosx-10.5-i386-2.5/pycuda
copying src/python/driver.py -> build/lib.macosx-10.5-i386-2.5/pycuda
copying src/python/gpuarray.py -> build/lib.macosx-10.5-i386-2.5/pycuda
copying src/python/rt.py -> build/lib.macosx-10.5-i386-2.5/pycuda
copying src/python/tools.py -> build/lib.macosx-10.5-i386-2.5/pycuda
copying src/python/vector_expr.py -> build/lib.macosx-10.5-i386-2.5/pycuda
running build_ext
building '_driver' extension
creating build/temp.macosx-10.5-i386-2.5
creating build/temp.macosx-10.5-i386-2.5/src
creating build/temp.macosx-10.5-i386-2.5/src/cpp
creating build/temp.macosx-10.5-i386-2.5/src/wrapper
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-fno-common -dynamic -Wall -O3 -DNDEBUG -pipe -Isrc/cpp
-I/Users/semenko/pool/include/boost-1_37 -I/usr/local/cuda/include
-I/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/core/include
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-c src/cpp/cuda.cpp -o build/temp.macosx-10.5-i386-2.5/src/cpp/cuda.o -arch
i386
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-fno-common -dynamic -Wall -O3 -DNDEBUG -pipe -Isrc/cpp
-I/Users/semenko/pool/include/boost-1_37 -I/usr/local/cuda/include
-I/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/core/include
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-c src/wrapper/wrap_cudadrv.cpp -o
build/temp.macosx-10.5-i386-2.5/src/wrapper/wrap_cudadrv.o -arch i386
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-fno-common -dynamic -Wall -O3 -DNDEBUG -pipe -Isrc/cpp
-I/Users/semenko/pool/include/boost-1_37 -I/usr/local/cuda/include
-I/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/core/include
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-c src/wrapper/tools.cpp -o
build/temp.macosx-10.5-i386-2.5/src/wrapper/tools.o -arch i386
g++ -Wl,-F. -bundle -undefined dynamic_lookup
build/temp.macosx-10.5-i386-2.5/src/cpp/cuda.o
build/temp.macosx-10.5-i386-2.5/src/wrapper/wrap_cudadrv.o
build/temp.macosx-10.5-i386-2.5/src/wrapper/tools.o
-L/Users/semenko/pool/lib -L/usr/local/cuda/lib -lboost_python-xgcc40-mt
-lcuda -o build/lib.macosx-10.5-i386-2.5/pycuda/_driver.so -arch i386
*
$ sudo make install*
ctags -R src || true
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
setup.py install
running install
running bdist_egg
running egg_info
writing requirements to pycuda.egg-info/requires.txt
writing pycuda.egg-info/PKG-INFO
writing top-level names to pycuda.egg-info/top_level.txt
writing dependency_links to pycuda.egg-info/dependency_links.txt
reading manifest file 'pycuda.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pycuda.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.5-i386/egg
running install_lib
running build_py
running build_ext
creating build/bdist.macosx-10.5-i386/egg
creating build/bdist.macosx-10.5-i386/egg/pycuda
copying build/lib.macosx-10.5-i386-2.5/pycuda/__init__.py ->
build/bdist.macosx-10.5-i386/egg/pycuda
copying build/lib.macosx-10.5-i386-2.5/pycuda/_driver.so ->
build/bdist.macosx-10.5-i386/egg/pycuda
copying build/lib.macosx-10.5-i386-2.5/pycuda/_kernel.py ->
build/bdist.macosx-10.5-i386/egg/pycuda
copying build/lib.macosx-10.5-i386-2.5/pycuda/autoinit.py ->
build/bdist.macosx-10.5-i386/egg/pycuda
copying build/lib.macosx-10.5-i386-2.5/pycuda/cumath.py ->
build/bdist.macosx-10.5-i386/egg/pycuda
copying build/lib.macosx-10.5-i386-2.5/pycuda/curandom.py ->
build/bdist.macosx-10.5-i386/egg/pycuda
copying build/lib.macosx-10.5-i386-2.5/pycuda/driver.py ->
build/bdist.macosx-10.5-i386/egg/pycuda
copying build/lib.macosx-10.5-i386-2.5/pycuda/gpuarray.py ->
build/bdist.macosx-10.5-i386/egg/pycuda
copying build/lib.macosx-10.5-i386-2.5/pycuda/rt.py ->
build/bdist.macosx-10.5-i386/egg/pycuda
copying build/lib.macosx-10.5-i386-2.5/pycuda/tools.py ->
build/bdist.macosx-10.5-i386/egg/pycuda
copying build/lib.macosx-10.5-i386-2.5/pycuda/vector_expr.py ->
build/bdist.macosx-10.5-i386/egg/pycuda
byte-compiling build/bdist.macosx-10.5-i386/egg/pycuda/__init__.py to
__init__.pyc
byte-compiling build/bdist.macosx-10.5-i386/egg/pycuda/_kernel.py to
_kernel.pyc
byte-compiling build/bdist.macosx-10.5-i386/egg/pycuda/autoinit.py to
autoinit.pyc
byte-compiling build/bdist.macosx-10.5-i386/egg/pycuda/cumath.py to
cumath.pyc
byte-compiling build/bdist.macosx-10.5-i386/egg/pycuda/curandom.py to
curandom.pyc
byte-compiling build/bdist.macosx-10.5-i386/egg/pycuda/driver.py to
driver.pyc
byte-compiling build/bdist.macosx-10.5-i386/egg/pycuda/gpuarray.py to
gpuarray.pyc
byte-compiling build/bdist.macosx-10.5-i386/egg/pycuda/rt.py to rt.pyc
byte-compiling build/bdist.macosx-10.5-i386/egg/pycuda/tools.py to tools.pyc
byte-compiling build/bdist.macosx-10.5-i386/egg/pycuda/vector_expr.py to
vector_expr.pyc
creating stub loader for pycuda/_driver.so
byte-compiling build/bdist.macosx-10.5-i386/egg/pycuda/_driver.py to
_driver.pyc
creating build/bdist.macosx-10.5-i386/egg/EGG-INFO
writing pycuda.egg-info/native_libs.txt
copying pycuda.egg-info/PKG-INFO ->
build/bdist.macosx-10.5-i386/egg/EGG-INFO
copying pycuda.egg-info/SOURCES.txt ->
build/bdist.macosx-10.5-i386/egg/EGG-INFO
copying pycuda.egg-info/dependency_links.txt ->
build/bdist.macosx-10.5-i386/egg/EGG-INFO
copying pycuda.egg-info/native_libs.txt ->
build/bdist.macosx-10.5-i386/egg/EGG-INFO
copying pycuda.egg-info/not-zip-safe ->
build/bdist.macosx-10.5-i386/egg/EGG-INFO
copying pycuda.egg-info/requires.txt ->
build/bdist.macosx-10.5-i386/egg/EGG-INFO
copying pycuda.egg-info/top_level.txt ->
build/bdist.macosx-10.5-i386/egg/EGG-INFO
creating 'dist/pycuda-0.91.1-py2.5-macosx-10.5-i386.egg' and adding
'build/bdist.macosx-10.5-i386/egg' to it
removing 'build/bdist.macosx-10.5-i386/egg' (and everything under it)
Processing pycuda-0.91.1-py2.5-macosx-10.5-i386.egg
creating
/Library/Python/2.5/site-packages/pycuda-0.91.1-py2.5-macosx-10.5-i386.egg
Extracting pycuda-0.91.1-py2.5-macosx-10.5-i386.egg to
/Library/Python/2.5/site-packages
Adding pycuda 0.91.1 to easy-install.pth file

Installed
/Library/Python/2.5/site-packages/pycuda-0.91.1-py2.5-macosx-10.5-i386.egg
Processing dependencies for pycuda==0.91.1
Searching for pytools==7
Best match: pytools 7
Processing pytools-7-py2.5.egg
pytools 7 is already the active version in easy-install.pth
Installing logtool script to /usr/local/bin
Installing runalyzer script to /usr/local/bin
Installing runalyzer-gather script to /usr/local/bin

Using /Library/Python/2.5/site-packages/pytools-7-py2.5.egg
Finished processing dependencies for pycuda==0.91.1


*$ python test_driver.py *
Traceback (most recent call last):
  File "test_driver.py", line 2, in <module>
    import pycuda.autoinit
  File
"/Library/Python/2.5/site-packages/pycuda-0.91.1-py2.5-macosx-10.5-i386.egg/pycuda/autoinit.py",
line 1, in <module>
    import pycuda.gpuarray as gpuarray
  File
"/Library/Python/2.5/site-packages/pycuda-0.91.1-py2.5-macosx-10.5-i386.egg/pycuda/gpuarray.py",
line 3, in <module>
    import pycuda._kernel as _kernel
  File
"/Library/Python/2.5/site-packages/pycuda-0.91.1-py2.5-macosx-10.5-i386.egg/pycuda/_kernel.py",
line 1, in <module>
    import pycuda.driver as drv
  File
"/Library/Python/2.5/site-packages/pycuda-0.91.1-py2.5-macosx-10.5-i386.egg/pycuda/driver.py",
line 1, in <module>
    from _driver import *
ImportError:
dlopen(/Library/Python/2.5/site-packages/pycuda-0.91.1-py2.5-macosx-10.5-i386.egg/pycuda/_driver.so,
2): Library not loaded: @rpath/libcuda.dylib
  Referenced from:
/Library/Python/2.5/site-packages/pycuda-0.91.1-py2.5-macosx-10.5-i386.egg/pycuda/_driver.so
  Reason: image not found



Any thoughts?

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

Reply via email to