Can gl_WorkGroupSize be set outside the compute shader? I am migrating code from CUDA to OpenGL compute shaders.
I could not find a way to set the local workgroup size outside the shader; is there a way to set gl_WorkGroupSize in the calling program like one can do for gl_NumWorkGroups?
Thanks in advance
Core OpenGL has no mechanism for this. The ARB_compute_variable_group_size extension provides such a feature. It doesn't allow for indirect compute operations though.

It doesn't seem to have much AMD support though (outside of open source Linux drivers). And Intel support is nil.