OpenCL doesn't support 2D arrays.
You'll _have_ to do that fancy stuff.
On Fri, Feb 12, 2010 at 11:11 PM, Markus Mohr <markus(a)johalla.de> wrote:
I'm pretty new to opencl so this might be quite obvious. :)
How do I pass a two dimensional array to a kernel, process it there and read it back?
Most examples have 1D arrays and those with 2D (like matrix-multiply) do a lot of fancy
stuff which I do not (yet) understand.
To keep it simple, the processing would be just to add 1 to each element.
thanks for your help
PyOpenCL mailing list
Department of Physics
Indian Institute of Technology