On Montag 09 März 2009, you wrote: > Thanks for the reply. > > I tried taking out the descr.flags call (I have PyCUDA 0.92, and this > is in my test_driver.py), to no avail, I still get the LogicError for > cuArrayCreate. > > (h,w) are (1,5) in my case. > > Here's a minimal code snippet: > > import pycuda.driver as cuda > import pycuda.autoinit > import numpy > > I1 = complex(0,1) > row = numpy.asarray(numpy.random.randn(1,5) + > I1*numpy.random.randn(1,5), dtype=numpy.complex64, order="C") > h, w = row.shape > descr = cuda.ArrayDescriptor() > descr.w = w > descr.h = h > descr.format = cuda.array_format.FLOAT > descr.num_channels = 2 > ary = cuda.Array(descr) ### <------------------------------- Crashes here
The descriptor attributes should be 'width' and 'height', not 'w' and 'h'. HTH, Andreas
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PyCuda mailing list [email protected] http://tiker.net/mailman/listinfo/pycuda_tiker.net
