For future reference, I find the best way to discover whether Snow Leopard's python is running in 32 or 64-bit mode is to run the following: python -c 'import sys;print sys.maxint' If it shows ~2 billion, it's in 32-bit mode. If it's some incomprehensibly big number, it's in 64-bit mode. =)
- bryan On Mar 8, 2010, at 7:14 AM, Daniel Kubas wrote: > Hi, > > It works now! Although > /usr/bin/python -c 'import os; print os.uname()[4]' says i386 > it might be "lying" . > > I forced python into 32-bit mode using > > setenv 'VERSIONER_PYTHON_PREFER_32_BIT yes' > > (got this trick from > http://mail.python.org/pipermail/python-list/2009-October/1222481.html) > > now the test runs like: > > /usr/bin/python test_driver.py > /Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg/pycuda/compiler.py:11: > UserWarning: call_capture_stdout is deprecated: use call_capture_output > instead > return call_capture_stdout([nvcc, "--version"]) > ................ > ---------------------------------------------------------------------- > Ran 16 tests in 0.130s > > OK > > :-) > > I just hope the 'UserWarning' is not critical and I can finally start using > Pycuda for my science and find exoplanets with it ;-) > > cheers, > > Daniel > > > > Andreas Klöckner wrote: >> On Montag 08 März 2010, Daniel Kubas wrote: >> >>> Hi Andreas, >>> >>> yes I built the boost library (1.39) with the recommended flag >>> >>> 'architecture=x86' >>> >>> and even omitting >>> >>> '--with-libraries=signals,thread,python' >>> >> >> If you haven't tried this already: >> Try poking at PyCUDA's _driver.so with 'otool -L' and then checking that >> all shared libraries depended on are actually 32-bit. >> >> Andreas >> > > > _______________________________________________ > PyCUDA mailing list > pyc...@host304.hostmonster.com > http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ PyCUDA mailing list pyc...@host304.hostmonster.com http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net