You pass all these parameters in the global and local arrays of NDRangeKernel. I can't find enqueueTask in ocl 2.0 or 1.2 Where did you find it?
You can also specify workgroups as kernel attriutes:
__kernel __attribute__((reqd_work_group_size(64, 1, 1))) void blank()
Hello Nibal hor are you?
I found the answer in https://www.khronos.org/registry/cl/specs/opencl-cplusplus-1.1.pdf
About the function cl::CommandQueue::enqueueTask "The kernel is executed using a single work-item."
These are C++ wrappers, that I don't use. But wrappers mean just that. You can interface them with the actual function, NDRamgeKernel if you need to. You can also use
printf("gid = %d, lid = %d, gsz = %lu, lsz = %lu\n", get_global_id(0), get_local_id(0), get_global_size(0), get_local_size(0));
from within your kernel code, to get any workgroup information you want.