On Donnerstag 22 April 2010, David Garcia wrote:
The hardware-independent way to solve this is to
call clGetKernelWorkGroupInfo() with an argument
of CL_KERNEL_WORK_GROUP_SIZE to get the maximum number of work-items that
you can enqueue at once.
See also CL_KERNEL_LOCAL_MEM_SIZE to find out how much local memory will be
available for that kernel.
Andreas, I assume that this is also exposed through PyOpenCL somehow :)