You need to use the 32-bit version of python. Cheers, Paul
On Sat, Jul 24, 2010 at 12:47 PM, GARRETT B WRIGHT < garrett.wri...@temple.edu> wrote: > I think this may be the problem... with macports python > > dionysus:site-packages garrettwright$ arch -i386 /opt/local/bin/python > Python 2.6.5 (r265:79063, Jul 23 2010, 20:06:08) > [GCC 4.2.1 (Apple Inc. build 5646)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import sys > >>> sys.maxint > 9223372036854775807 > >>> > > > On Sat, Jul 24, 2010 at 10:51 AM, GARRETT B WRIGHT < > garrett.wri...@temple.edu> wrote: > >> I am successfully building and installing PyCUDA on mac by using macports >> python26. However I am receiving the following architecture mismatch error >> on import of pycuda: >> >> dionysus:test garrettwright$ python test_driver.py >> Traceback (most recent call last): >> File "test_driver.py", line 4, in <module> >> from pycuda.tools import mark_cuda_test >> File >> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-macosx-10.6-x86_64.egg/pycuda/tools.py", >> line 30, in <module> >> import pycuda.driver as cuda >> File >> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-macosx-10.6-x86_64.egg/pycuda/driver.py", >> line 1, in <module> >> from _driver import * >> ImportError: >> dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-macosx-10.6-x86_64.egg/pycuda/_driver.so, >> 2): no suitable image found. Did find: >> >> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-macosx-10.6-x86_64.egg/pycuda/_driver.so: >> mach-o, but wrong architecture >> >> Is there a known workaround? It seems this is the only issue holding >> PyCUDA back from a reasonable install on the Mac. I have been following the >> other threads and am not terrible enthused with the methods or level of >> complication. If someone has a work around for the arch error, I can >> compile a Portfile for PyCUDA and we can all enjoy a simple one line Mac >> install :) >> >> garrett dot wright at temple dot edu >> >> > > _______________________________________________ > PyCUDA mailing list > PyCUDA@tiker.net > http://lists.tiker.net/listinfo/pycuda > > -- Paul Rigor http://www.ics.uci.edu/~prigor
_______________________________________________ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda