Hi Lawrence, Lawrence Mitchell <[email protected]> writes: > If you accidentally pass a numpy integer type as the shape > argument to GPUarray, memory allocation fails: > > import pycuda.autoinit > import pycuda.gpuarray as gpuarray > import numpy as np > > gpuarray.empty(shape=np.prod(10), dtype='double') > > ArgumentError: Python argument types in > pycuda._driver.mem_alloc(numpy.int64) > did not match C++ signature: > mem_alloc(unsigned long) > > Here's a patch:
Thanks for the patch. This is now tested/fixed in PyCUDA and PyOpenCL git. Andreas _______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
