[PyCUDA] PyCUDA on MacOS 10.5.8 and python 2.6.3

Allan Peter Engsig-Karup apek at imm.dtu.dk
Tue Oct 13 00:58:10 PDT 2009


Hi Andreas,

Missed that. It helped a bit... Next problem seems to be related to
setuptools.

I now have a siteconf.py script setup as

BOOST_INC_DIR = ["/usr/local/include"]
BOOST_LIB_DIR = ["/usr/local/lib"]
BOOST_COMPILER = ["gcc"]
BOOST_PYTHON_LIBNAME = ["boost_python"]
BOOST_THREAD_LIBNAME = ["boost_thread"]
CUDA_TRACE = False
CUDA_ROOT = "/usr/local/cuda/"
CUDA_ENABLE_GL = False
CUDADRV_LIB_DIR = ["/usr/local/cuda/lib"]
CUDADRV_LIBNAME = ["cuda"]
CXXFLAGS = [] 
LDFLAGS = []

Running make result in

ctags -R src || true
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Conte
nts/MacOS/Python setup.py build
/usr/local/include /boost/  python .hpp
/usr/local/lib / lib boost_python .so
/usr/local/lib / lib boost_python .dylib
/usr/local/lib / lib boost_thread .so
/usr/local/lib / lib boost_thread .dylib
/usr/local/cuda/ /bin/  nvcc
/usr/local/cuda/include /  cuda .h
/usr/local/cuda/lib / lib cuda .so
/usr/local/cuda/lib / lib cuda .dylib
running build
running build_py
running build_ext
----------------------------------------------------------------------------
Sorry, your build failed. Try rerunning configure.py with different options.
----------------------------------------------------------------------------
Traceback (most recent call last):
  File "setup.py", line 329, in <module>
    main()
  File "setup.py", line 321, in main
    ("include/pycuda", glob.glob("src/cuda/*.hpp"))
  File "/Users/apek/Documents/Software libraries/pycuda/aksetup_helper.py",
line 12, in setup
    setup(*args, **kwargs)
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/c
ore.py", line 152, in setup
    dist.run_commands()
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/d
ist.py", line 975, in run_commands
    self.run_command(cmd)
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/d
ist.py", line 995, in run_command
    cmd_obj.run()
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/c
ommand/build.py", line 134, in run
    self.run_command(cmd_name)
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/c
md.py", line 333, in run_command
    self.distribution.run_command(command)
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/d
ist.py", line 995, in run_command
    cmd_obj.run()
  File "/Users/apek/Documents/Software
libraries/pycuda/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py"
, line 46, in run
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/c
ommand/build_ext.py", line 340, in run
    self.build_extensions()
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/c
ommand/build_ext.py", line 449, in build_extensions
    self.build_extension(ext)
  File "/Users/apek/Documents/Software
libraries/pycuda/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py"
, line 175, in build_extension
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/c
ommand/build_ext.py", line 460, in build_extension
    ext_path = self.get_ext_fullpath(ext.name)
  File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/c
ommand/build_ext.py", line 633, in get_ext_fullpath
    filename = self.get_ext_filename(modpath[-1])
  File "/Users/apek/Documents/Software
libraries/pycuda/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py"
, line 85, in get_ext_filename
KeyError: '_driver'
make: *** [all] Error 1

Any ideas to what could be wrong here?

Allan





More information about the PyCUDA mailing list