compute actual local workgroup size, instead of a hard-coded value