On Mon, 26 Jul 2010 07:37:52 -0400, Zachary Tong <zacharyjtong(a)gmail.com> wrote:
I'm probably being dense, but I can't quite figure out use shared memory in
PyOpenCL. I attempted to allocate a shared buffer using cl.buffer(),
specifying the size but no hostbuf argument. The compiler, however,
complains of bad arguments when attempting to invoke the kernel. Here is
basically what I'm doing:
sharedBuffer = cl.Buffer(ctx, mf.READ_WRITE, size = sharedSize)
Try cl.LocalMemory(size) instead.