I've given this a pretty good try but no luck. Any help appreciated. I
have a
Macbook Pro (Model Identifier MacBookPro3,1). 2.4 GHz, 4Gb, with a
GeForce 8600M GT and 256 Mb. Running Leopard 10.5.5
1) Python is Mac Python 2.5.2, startup message below
> Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
> [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
2) Installed boost 1.37. Did it by:
sudo bjam toolset=darwin install
It said at the top
> warning: Graph library does not contain optional GraphML reader.
> note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH
> to the
> note: directories containing the Expat headers and libraries,
> respectively.
> warning: skipping optional Message Passing Interface (MPI) library.
> note: to enable MPI support, add "using mpi ;" to user-config.jam.
> note: to suppress this message, pass "--without-mpi" to bjam.
> note: otherwise, you can safely ignore this message.
> Building Boost.Regex with the optional Unicode/ICU support disabled.
> Note: Please refer to the Boost.Regex documentation for more information
> Note: this is a strictly optional feature.
> ...patience...
> ...patience...
> ...patience...
> ...found 19125 targets...
> ...updating 763 targets...
and at the end it said
> ln-UNIX /usr/local/lib/libboost_unit_test_framework-xgcc40-mt.a
> ln-UNIX /usr/local/lib/libboost_thread-xgcc40-mt.a
> ln-UNIX /usr/local/lib/libboost_wave-xgcc40-mt.a
> ...updated 763 targets...
So it looks to me like it installed, in /usr/local/include/boost-1_37
and in /usr/local/library. I didn't do the whole bjam test but I ran
some old code I had around and it looked good.
3) Installed cuda. Cuda libraries are supposedly already in Leopard, so
I installed the tools. Installation went into /usr/local/cuda, top level
ls below
> drwxrwxr-x 3 bill admin 102 2008-12-03 13:00 src/
> drwxrwxr-x 14 bill admin 476 2008-12-03 13:00 doc/
> drwxrwxr-x 34 bill admin 1156 2008-12-03 13:00 include/
> drwxrwxr-x 9 bill admin 306 2008-12-03 13:00 lib/
> drwxrwxr-x 10 bill admin 340 2008-12-03 13:00 bin/
> drwxrwxr-x 4 root wheel 136 2008-07-16 15:27 man/
> drwxrwxr-x 4 bill admin 136 2008-02-08 17:17 open64/
4) Updated .bashrc to have cuda and boost libraries in the path.
> DYLD_LIBRARY_PATH=/usr/local/cuda/lib:/usr/local/lib
> export DYLD_LIBRARY_PATH
5) Built pycuda. siteconf.py below
> BOOST_INC_DIR = ['/usr/local/include/boost-1_37']
> BOOST_LIB_DIR = ['/usr/local/lib']
> BOOST_PYTHON_LIBNAME = ['boost_python-xgcc40-mt-1_37']
> CUDA_ROOT = '/usr/local/cuda'
> CUDA_INC_DIR = ['/usr/local/cuda/include']
> CUDADRV_LIB_DIR = ['/usr/local/cuda/lib']
> CUDADRV_LIBNAME = ['cuda']
> CXXFLAGS = ['-arch', 'i386']
> LDFLAGS = ['-arch', 'i386']
The full build is shown below. I'm concerned about the macosx-10.3
(should be 10.5, this is Leopard) but I'm clueless as to why I get that
or if it is significant.
> >sudo make install
> ctags -R src || true
> ctags: illegal option -- R
> usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
> /Library/Frameworks/Python.framework/Versions/Current/bin/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.3-i386/egg
> running install_lib
> running build_py
> creating build
> creating build/lib.macosx-10.3-i386-2.5
> creating build/lib.macosx-10.3-i386-2.5/pycuda
> copying src/python/__init__.py -> build/lib.macosx-10.3-i386-2.5/pycuda
> copying src/python/_kernel.py -> build/lib.macosx-10.3-i386-2.5/pycuda
> copying src/python/autoinit.py -> build/lib.macosx-10.3-i386-2.5/pycuda
> copying src/python/cumath.py -> build/lib.macosx-10.3-i386-2.5/pycuda
> copying src/python/curandom.py -> build/lib.macosx-10.3-i386-2.5/pycuda
> copying src/python/driver.py -> build/lib.macosx-10.3-i386-2.5/pycuda
> copying src/python/gpuarray.py -> build/lib.macosx-10.3-i386-2.5/pycuda
> copying src/python/rt.py -> build/lib.macosx-10.3-i386-2.5/pycuda
> copying src/python/tools.py -> build/lib.macosx-10.3-i386-2.5/pycuda
> copying src/python/vector_expr.py -> build/lib.macosx-10.3-i386-2.5/pycuda
> running build_ext
> building '_driver' extension
> creating build/temp.macosx-10.3-i386-2.5
> creating build/temp.macosx-10.3-i386-2.5/src
> creating build/temp.macosx-10.3-i386-2.5/src/cpp
> creating build/temp.macosx-10.3-i386-2.5/src/wrapper
> gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing
> -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic
> -O3 -DNDEBUG -Isrc/cpp -I/usr/local/include/boost-1_37
> -I/usr/local/cuda/include
> -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> -c src/cpp/cuda.cpp -o build/temp.macosx-10.3-i386-2.5/src/cpp/cuda.o
> -arch i386
> gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing
> -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic
> -O3 -DNDEBUG -Isrc/cpp -I/usr/local/include/boost-1_37
> -I/usr/local/cuda/include
> -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> -c src/wrapper/wrap_cudadrv.cpp -o
> build/temp.macosx-10.3-i386-2.5/src/wrapper/wrap_cudadrv.o -arch i386
> gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing
> -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic
> -O3 -DNDEBUG -Isrc/cpp -I/usr/local/include/boost-1_37
> -I/usr/local/cuda/include
> -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> -c src/wrapper/tools.cpp -o
> build/temp.macosx-10.3-i386-2.5/src/wrapper/tools.o -arch i386
> g++ -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined
> dynamic_lookup build/temp.macosx-10.3-i386-2.5/src/cpp/cuda.o
> build/temp.macosx-10.3-i386-2.5/src/wrapper/wrap_cudadrv.o
> build/temp.macosx-10.3-i386-2.5/src/wrapper/tools.o -L/usr/local/lib
> -L/usr/local/cuda/lib -lboost_python-xgcc40-mt-1_37 -lcuda -o
> build/lib.macosx-10.3-i386-2.5/pycuda/_driver.so -arch i386
> creating build/bdist.macosx-10.3-i386
> creating build/bdist.macosx-10.3-i386/egg
> creating build/bdist.macosx-10.3-i386/egg/pycuda
> copying build/lib.macosx-10.3-i386-2.5/pycuda/__init__.py ->
> build/bdist.macosx-10.3-i386/egg/pycuda
> copying build/lib.macosx-10.3-i386-2.5/pycuda/_driver.so ->
> build/bdist.macosx-10.3-i386/egg/pycuda
> copying build/lib.macosx-10.3-i386-2.5/pycuda/_kernel.py ->
> build/bdist.macosx-10.3-i386/egg/pycuda
> copying build/lib.macosx-10.3-i386-2.5/pycuda/autoinit.py ->
> build/bdist.macosx-10.3-i386/egg/pycuda
> copying build/lib.macosx-10.3-i386-2.5/pycuda/cumath.py ->
> build/bdist.macosx-10.3-i386/egg/pycuda
> copying build/lib.macosx-10.3-i386-2.5/pycuda/curandom.py ->
> build/bdist.macosx-10.3-i386/egg/pycuda
> copying build/lib.macosx-10.3-i386-2.5/pycuda/driver.py ->
> build/bdist.macosx-10.3-i386/egg/pycuda
> copying build/lib.macosx-10.3-i386-2.5/pycuda/gpuarray.py ->
> build/bdist.macosx-10.3-i386/egg/pycuda
> copying build/lib.macosx-10.3-i386-2.5/pycuda/rt.py ->
> build/bdist.macosx-10.3-i386/egg/pycuda
> copying build/lib.macosx-10.3-i386-2.5/pycuda/tools.py ->
> build/bdist.macosx-10.3-i386/egg/pycuda
> copying build/lib.macosx-10.3-i386-2.5/pycuda/vector_expr.py ->
> build/bdist.macosx-10.3-i386/egg/pycuda
> byte-compiling build/bdist.macosx-10.3-i386/egg/pycuda/__init__.py to
> __init__.pyc
> byte-compiling build/bdist.macosx-10.3-i386/egg/pycuda/_kernel.py to
> _kernel.pyc
> byte-compiling build/bdist.macosx-10.3-i386/egg/pycuda/autoinit.py to
> autoinit.pyc
> byte-compiling build/bdist.macosx-10.3-i386/egg/pycuda/cumath.py to
> cumath.pyc
> byte-compiling build/bdist.macosx-10.3-i386/egg/pycuda/curandom.py to
> curandom.pyc
> byte-compiling build/bdist.macosx-10.3-i386/egg/pycuda/driver.py to
> driver.pyc
> byte-compiling build/bdist.macosx-10.3-i386/egg/pycuda/gpuarray.py to
> gpuarray.pyc
> byte-compiling build/bdist.macosx-10.3-i386/egg/pycuda/rt.py to rt.pyc
> byte-compiling build/bdist.macosx-10.3-i386/egg/pycuda/tools.py to
> tools.pyc
> byte-compiling build/bdist.macosx-10.3-i386/egg/pycuda/vector_expr.py
> to vector_expr.pyc
> creating stub loader for pycuda/_driver.so
> byte-compiling build/bdist.macosx-10.3-i386/egg/pycuda/_driver.py to
> _driver.pyc
> creating build/bdist.macosx-10.3-i386/egg/EGG-INFO
> copying pycuda.egg-info/PKG-INFO ->
> build/bdist.macosx-10.3-i386/egg/EGG-INFO
> copying pycuda.egg-info/SOURCES.txt ->
> build/bdist.macosx-10.3-i386/egg/EGG-INFO
> copying pycuda.egg-info/dependency_links.txt ->
> build/bdist.macosx-10.3-i386/egg/EGG-INFO
> copying pycuda.egg-info/not-zip-safe ->
> build/bdist.macosx-10.3-i386/egg/EGG-INFO
> copying pycuda.egg-info/requires.txt ->
> build/bdist.macosx-10.3-i386/egg/EGG-INFO
> copying pycuda.egg-info/top_level.txt ->
> build/bdist.macosx-10.3-i386/egg/EGG-INFO
> writing build/bdist.macosx-10.3-i386/egg/EGG-INFO/native_libs.txt
> creating 'dist/pycuda-0.91.1-py2.5-macosx-10.3-i386.egg' and adding
> 'build/bdist.macosx-10.3-i386/egg' to it
> removing 'build/bdist.macosx-10.3-i386/egg' (and everything under it)
> Processing pycuda-0.91.1-py2.5-macosx-10.3-i386.egg
> removing
> '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-macosx-10.3-i386.egg'
> (and everything under it)
> creating
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-macosx-10.3-i386.egg
> Extracting pycuda-0.91.1-py2.5-macosx-10.3-i386.egg to
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
> pycuda 0.91.1 is already the active version in easy-install.pth
>
> Installed
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-macosx-10.3-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
> /Library/Frameworks/Python.framework/Versions/2.5/bin
> Installing runalyzer script to
> /Library/Frameworks/Python.framework/Versions/2.5/bin
> Installing runalyzer-gather script to
> /Library/Frameworks/Python.framework/Versions/2.5/bin
>
> Using
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pytools-7-py2.5.egg
> Finished processing dependencies for pycuda==0.91.1
> [14:[EMAIL PROTECTED]/python/pycuda-0.91.1
Then I run python and get the following
> >python
> Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
> [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pycuda.driver
> Fatal Python error: Interpreter not initialized (version mismatch?)
> Abort trap
The wisdom I've seen is that this is a mismatch of version (of python,
of gcc, something) but I'm at a loss as to what given what is shown
above. Any help appreciated.
--
>>>bill<<<
_______________________________________________
PyCuda mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net