I'm fairly certain that Python defaults to 64 bit on Snow Leopard (but
I run Leopard so can't confirm):
http://wiki.tiker.net/PyCuda/Installation/Mac#Notes_about_Snow_Leopard

Someone else had a similar error in the past:
http://host304.hostmonster.com/pipermail/pycuda_tiker.net/2010-January/000884.html

It might be worth downgrading to CUDA 2.3 - I think people in the past
have had pyCUDA working (you'll want to go back through the threads to
be sure). CUDA 3.0 is very new, maybe there are bugs that still need
fixing?

See here for another user with 32/64bit Snow Leopard issues:
http://host304.hostmonster.com/pipermail/pycuda_tiker.net/2010-March/thread.html#1059

Here a user gets pyCUDA 0.93 working on Snow Leopard - there's
something about changing the default build to 32bit (in 0.93) which
you might need to change when building on 64 bit (but that's a
guess!):
http://host304.hostmonster.com/pipermail/pycuda_tiker.net/2010-January/000916.html

>From my own knowledge getting pyCUDA 0.94rc works fine on Leopard (32
bit) with CUDA 2.3.

i.

On 20 April 2010 13:38, Cyrus Omar <cy...@cmu.edu> wrote:
> 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
>
>



-- 
Ian Ozsvald (A.I. researcher, screencaster)
i...@ianozsvald.com

http://IanOzsvald.com
http://morconsulting.com/
http://TheScreencastingHandbook.com
http://ProCasts.co.uk/examples.html
http://twitter.com/ianozsvald

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

Reply via email to