On Fri, 8 Apr 2011 13:55:25 +0200, Sebastian Weber <[email protected]> wrote: > Hi Andreas! > > I just started to use your PyCUDA on Mac Snow Leopard. As I wanted to use it > for sparse linear algebra, I had to install PyMetis. This (beast) software > only compiled, when I added -DDARWIN to the CXX flags. Otherwise, I got many > errors from it. > > Moreover, when trying to run the sparse example found in the wiki, I got the > error > > Traceback (most recent call last): > File "./sparse.py", line 86, in <module> > main_cg() > File "./sparse.py", line 33, in main_cg > spmv = PacketedSpMV(csr_mat, options.is_symmetric, csr_mat.dtype) > File > "/Volumes/Data/sebi/.local/lib/python2.6/site-packages/pycuda-2011.1-py2.6-macosx-10.6-i386.egg/pycuda/sparse/packeted.py", > line 179, in __init__ > from pkt_build import build_pkt_data_structure > File > "/Volumes/Data/sebi/.local/lib/python2.6/site-packages/pycuda-2011.1-py2.6-macosx-10.6-i386.egg/pycuda/sparse/pkt_build.py", > line 75, in <module> > from pkt_build_cython import build_pkt_data_structure > ImportError: No module named pkt_build_cython > > > which I fixed by removing the respective line importing > pkt_build_cython module. Don't know if that is right or not, but now > the program seems to run just fine. The PyCUDA version is from git as > of 08.04.2011.
Yes, it just runs more slowly than it needs to. Install Cython, put the line back, and everything should be ok. > Out of curiosity: How come PyCUDA is still 32bit only - it should work > in 64bit mode without any problems even on Snow Leopard nowadays. Where did you find this information? It is most certainly outdated, and has been for a while. 64-bit mac should be fine. Andreas
pgptoQbr2ZceF.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
