Hi Ian,
thanks for your comments. Indeed the error seems to point in this 32 vs
64 bit architecture
problem under SnowLeopard. However I just can't find the piece which is
not in 32 bit.
My python is in 32-bit, i checked with
[hal:Versions/2.6/bin] dkubas% /usr/bin/python -c 'import os; print
os.uname()[4]'
i386
and to check if there is another python:
[hal:Versions/2.6/bin] dkubas% type -a python
python is /usr/bin/python
I am using CUDA-2.3 which for Mac only comes in 32-bit
And I put a '-m32' and '-arch -i386' in all the places I could think
off to build pycuda:
[hal:~/pool/pycuda-0.93/build] dkubas% ls
bdist.macosx-10.6-i386 lib.macosx-10.6-i386-2.6
temp.macosx-10.6-i386-2.6
Have a good trip,
cheers,
Daniel
Ian Ozsvald wrote:
Hi Daniel. I'm just about to fly out of the country for a while so
I'll just chip in briefly...you're on Snow Leopard and other people
have had trouble with 32 bit vs 64 bit compiles in the past. Have you
confirmed that your CUDA and pyCUDA (and Python?) are both either 32
bit or 64 bit (but not mixed)?
Ian.
On 6 March 2010 19:46, Daniel Kubas <dku...@gmail.com> wrote:
Dear Andreas,
thanks for the fast response!
after removing all previous setup tools via
sudo rm -Rf /Library/Python/2.6/site-packages/setup*
and downloading http://pypi.python.org/pypi/distribute version 0.6.10 and
installing
sudo python distribute_setup.py
the pycuda sudo make install finishes without crash.
But I can't open the champagne yet, when trying to execute the test
[hal:~/pool/pycuda-0.93/test] dkubas% python test_driver.py
Traceback (most recent call last):
File "test_driver.py", line 3, in <module>
import pycuda.autoinit
File
"/Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg/pycuda/autoinit.py",
line 1, in <module>
import pycuda.driver as cuda
File
"/Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg/pycuda/driver.py",
line 1, in <module>
from _driver import *
ImportError:
dlopen(/Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg/pycuda/_driver.so,
2): no suitable image found. Did find:
/Library/Python/2.6/site-packages/pycuda-0.93-py2.6-macosx-10.6-i386.egg/pycuda/_driver.so:
mach-o, but wrong architecture
I get a "wrong architecture" :(
giving up for today,
cheers, Daniel
Andreas Klöckner wrote:
On Samstag 06 März 2010, Daniel Kubas wrote:
Dear Mac-Pycuda users
did someone of you encounter a
error: invalid command 'bdist_egg'
during sudo make install ?
below my setup and more details of the error,
thanks a million in advance for your help,
cheers, Daniel
I'm not sure, but this could partly be a result of the
setuptools/distribute disaster. See
http://wiki.tiker.net/DistributeVsSetuptools
and try to use distribute instead of setuptools.
HTH,
Andreas
_______________________________________________
PyCUDA mailing list
pyc...@host304.hostmonster.com
http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net
_______________________________________________
PyCUDA mailing list
pyc...@host304.hostmonster.com
http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net