Hello,

I searched a lot around for this and couldn't find any answers - so I'm asking here:

Can someone please provide me with a working example of allocating a 3D numpy array, moving it to the device, change each xy-2D slice by one work item using the
work item's gid and get the result back on the host?

There are also some open questions on stackoverflow concerning the same or similar issues, so I feel, I'm not the only one having trouble understanding
the basic handling of arrays/numpy/openCL/pyopenCL in a consistent way:

http://stackoverflow.com/questions/17928445/why-use-pyopencl-array-array

http://stackoverflow.com/questions/33179043/convert-opencl-image-to-pyopencl-array-or-numpy-ndarray

and especially:

http://stackoverflow.com/questions/32188144/pyopencl-indexing-3d-arrays-inside-kernel-code

Thanks in advance

_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to