yes, thanks also to Bogdan Opanchuk. i have everyting working nicely now.
andrew On Mon, Oct 03, 2011 at 06:39:10PM +0200, Andreas Kloeckner wrote: > 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 _______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
