Hi Andrew,
On Fri, 30 Sep 2011 16:18:27 -0300, andrew cooke <[email protected]> wrote: > why does the code below work, but the alternative commented lines fail with > "invalid kernel argument"? i guess i am not understanding the Array class, > but it seems like it is intended to be an easier-to-use replacement for > explicit buffers? A buffer is a bag of bytes, whereas an Array knows something about its shape, its data type, and its data layout--it is meant for array-like data (just like the type of data that numpy would manage), whereas buffers could contain just about anything. There is a buffer within each array. Suppose 'ary' is your Array, then 'ary.data' is the underlying buffer. HTH, Andreas
pgpASAxQX5ejb.pgp
Description: PGP signature
_______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
