Re: [PyCUDA] mac64 PyCUDA

2010-10-16 Thread Andreas Kloeckner
Hi Cyrus, On Wed, 22 Sep 2010 16:30:26 -0700, Cyrus Omar cy...@cmu.edu wrote: Using the latest git pycuda (and included boost) and CUDA 3.2 driver and toolkit, it seems that installation works with 64-bit Python on Snow Leopard. Both test_driver and test_cumath work. However, not all of the

Re: [PyCUDA] mac64 PyCUDA

2010-09-21 Thread Alan
Dear Andreas, It seems that finally we're getting there. You may not remember anymore but I've been pursuing this issue since from the very beginning (if I've not even started it this discussion at all), but didn't have time lately. I would appreciate when you do your next pycuda and pyopencl

Re: [PyCUDA] mac64 PyCUDA

2010-09-21 Thread Alan
Dear all, I did on my MBP SL 10.6.4: #pycuda 21/09/10 wget -c http://pypi.python.org/packages/source/p/pycuda/pycuda-0.94.1.tar.gz tar xvfz pycuda-0.94.1.tar.gz cd pycuda-0.94.1 /usr/bin/python2.6 configure.py make sudo make install cd test /usr/bin/python2.6 test_driver.py

Re: [PyCUDA] mac64 PyCUDA

2010-09-20 Thread Bryan Catanzaro
I think it should be changed to check to see if the Python interpreter is currently running in 32 bit mode, and then compile to match: if 'darwin' in sys.platform and sys.maxint == 2147483647: # The Python interpreter is running in 32 bit mode on OS X if -arch not in conf[CXXFLAGS]:

Re: [PyCUDA] mac64 PyCUDA

2010-09-20 Thread MinRK
Bryan, Note that in 3.2, all files in cuda/lib are UB, including cudart (finally!). I build fat-binary on OS-X (up to date 10.6.4, cuda 3.2, etc.), simply by setting the usual arch flags in siteconf.py: CXXFLAGS = [-arch, x86_64, -arch, i386] LDFLAGS = [-arch, x86_64, -arch, i386] The build

Re: [PyCUDA] mac64 PyCUDA

2010-09-20 Thread MinRK
Okay, with a tiny tweak to compiler.compile, I have UB pycuda working in both 64 and 32-bit. All I did was tell compile() to add '-m64' to options if it detects 64-bit mode, in the same way as Bryan's trick. I pushed a branch with the patch to my GitHub: http://github.com/minrk/pycuda, as well

Re: [PyCUDA] mac64 PyCUDA

2010-09-20 Thread Art
On Mon, Sep 20, 2010 at 2:08 PM, MinRK mi...@berkeley.edu wrote: Okay, with a tiny tweak to compiler.compile, I have UB pycuda working in both 64 and 32-bit. All I did was tell compile() to add '-m64' to options if it detects 64-bit mode, in the same way as Bryan's trick. I pushed a branch

Re: [PyCUDA] mac64 PyCUDA

2010-09-19 Thread Andreas Kloeckner
On Thu, 16 Sep 2010 14:37:31 -0400, gerald wrong psillymathh...@gmail.com wrote: Looking at PyCUDA setup.py, I found this: if 'darwin' in sys.platform: # prevent from building ppc since cuda on OS X is not compiled for ppc # also, default to 32-bit build, since there

Re: [PyCUDA] mac64 PyCUDA

2010-09-19 Thread gerald wrong
I think PyCUDA should attempt to build correctly as 64bit so once the python64 bugs are shaken out, PyCUDA will be able to build on Mac OS X without special flags etc. My understanding from multiple build attempts is that there is a bug in the various Mac 64bit python implementations causing them