On Mon, 3 Oct 2011 13:35:21 +0100, Irwin Zaid <irwin.z...@physics.ox.ac.uk> wrote: > Hi all, > > I just found (in my opinion) what may be a bug in GPUArray. Python 2.x > has both ints and longs, and some functions (including some in numpy) > may return either depending on the input. > > GPUArray, however, only likes ints as shape parameters. This seems to be > resolvable by changing line 159 in gpuarray.py from "assert > isinstance(shape, int)" to "assert isinstance(shape, (int, long))".
Fixed in PyCUDA, PyOpenCL git. Thanks for the report. Andreas
pgpSCU7QpA4CJ.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda