So I've been spending the last several hours trying to install PyCUDA on
Snow Leopard. Initially, seeing that CUDA 3.0 was 64-bit on OSX, I attempted
to install everything 64-bit (boost, python, pycuda, etc.). I got as far as
running test_driver.py which froze my machine completely, needing a hard
reboot. No error message or anything (not the ones others have been
reporting).

Ok, take 2, try to install everything 32-bit. I got boost compiled as
32-bit, a fresh install of Sage 32-bit for Python. PyCUDA 0.93 after
patching out setuptools for distutils makes and test_driver.py runs to
success with the following strange warnings:

/Users/cyrus/sage/local/lib/python2.6/site-packages/pycuda-0.93-py2.6-macosx-10.5-x86_64.egg/pycuda/compiler.py:11:
UserWarning: call_capture_stdout is deprecated: use call_capture_output
instead
  return call_capture_stdout([nvcc, "--version"])
/Users/cyrus/sage/local/lib/python2.6/site-packages/pycuda-0.93-py2.6-macosx-10.5-x86_64.egg/pycuda/compiler.py:192:
UserWarning: Reading 'lmem' from cubin failed--SourceModule metadata may be
unavailable.
  warn("Reading '%s' from cubin failed--SourceModule metadata may be
unavailable." % key)
/Users/cyrus/sage/local/lib/python2.6/site-packages/pycuda-0.93-py2.6-macosx-10.5-x86_64.egg/pycuda/compiler.py:192:
UserWarning: Reading 'smem' from cubin failed--SourceModule metadata may be
unavailable.
  warn("Reading '%s' from cubin failed--SourceModule metadata may be
unavailable." % key)
/Users/cyrus/sage/local/lib/python2.6/site-packages/pycuda-0.93-py2.6-macosx-10.5-x86_64.egg/pycuda/compiler.py:192:
UserWarning: Reading 'reg' from cubin failed--SourceModule metadata may be
unavailable.
  warn("Reading '%s' from cubin failed--SourceModule metadata may be
unavailable." % key)

Which seems to mean mod.smem and all that return None instead of the proper
values. The kernels still seem to work however, so this is vaguely
acceptable at the moment.

Trying to install PyCUDA 0.94rc (from PyPI) also finishes make but many of
the tests now fail with errors like this and nothing works:

E       ImportError:
dlopen(/Users/cyrus/sage/local/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-macosx-10.5-x86_64.egg/pycuda/_pvt_struct.so,
2): no suitable image found.  Did find:
E
/Users/cyrus/sage/local/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-macosx-10.5-x86_64.egg/pycuda/_pvt_struct.so:
mach-o, but wrong architecture

I have no idea why both 0.93 and 0.94 call the directory macosx-10.5-x86_64
instead of 10.6-i386.

The latest git version has strange issues during make install where it ends
with an error about configure.py not having been run the first time I do it
(even though it had been) and then running it again goes to completion. The
test_driver.py errors are the same as 0.94rc.

For reference, PyOpenCL works fine in 64-bit mode on this machine.

Any ideas?

Cyrus
_______________________________________________
PyCUDA mailing list
pyc...@host304.hostmonster.com
http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net

Reply via email to