[PyOpenCL] Allocating shared buffer memory?
Zachary Tong
zacharyjtong at gmail.com
Mon Jul 26 04:37:52 PDT 2010
Hello,
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)
__kernel void computeAttractionOpt( <a bunch of __global args>, __local
float * shared)
prgOpt.computeAttractionOpt(queue, <bunch of args>, sharedBuffer)
I'm clearly missing something, but am too new to PyOpenCL/OpenCL to catch
it. Thanks =)
-Zach
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tiker.net/pipermail/pyopencl/attachments/20100726/6c8d160a/attachment.htm>
More information about the PyOpenCL
mailing list