Work Group Size Error is Confusing #2985
Labels
area: documentation
Documentation for crate items, public or private
good first issue
Good for newcomers
help required
We need community help to make this happen.
type: enhancement
New feature or request
I am working on a project involving a compute shader on MacOS and have set the local work group size in the shader like so:
@workgroup_size(8, 8, 8)
However, this results in an error that reads:
shader entry point current workgroup size [8, 8, 8] must be less or equal to [256, 256, 64] of total 256
After talking to some folks on Matrix, it seems that what the error is trying to say is: the total number of invocations in a work group cannot exceed 256. In my case, the total # of invocations is 8x8x8 = 512, which is greater than 256, so it fails to compile. I'm not sure how to best word the error message, but I think it's a little confusing as-is, since [8, 8, 8] is clearly less than [256, 256, 64] across all dimensions.
The text was updated successfully, but these errors were encountered: