I think nozted is recommending you to have a look at the man page for clEnqueueNDRangeKernel and perhaps section 3.2 of the OpenCL 1.1. specification as well.