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 <[email protected]> wrote:
> Hi,
>
> 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
> Markus
> _______________________________________________
> PyOpenCL mailing list
> [email protected]
> http://host304.hostmonster.com/mailman/listinfo/pyopencl_tiker.net
>



-- 
Rohit Garg

http://rpg-314.blogspot.com/

Senior Undergraduate
Department of Physics
Indian Institute of Technology
Bombay

_______________________________________________
PyOpenCL mailing list
[email protected]
http://host304.hostmonster.com/mailman/listinfo/pyopencl_tiker.net

Reply via email to