Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix subgroup_arithmetic benchmark for flexible subgroup sizes #46

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

dneto0
Copy link
Collaborator

@dneto0 dneto0 commented Nov 24, 2023

Set up source data values according to the subgroupSize device property. But inside the shader, measure the actual subgroup size, and pass it out of the shader. Then, adjust the verification logic to take that actual subgroup size into account.

This still does the same amount of arithmetic as in the original code, and it does it in the same shape.

Fixes: #45

@dneto0 dneto0 requested a review from kuhar November 24, 2023 23:11
Set up source data values according to the subgroupSize device property.
But inside the shader, measure the actual subgroup size, and pass it
out of the shader. Then, adjust the verification logic to take that
actual subgroup size into account.

This still does the same amount of arithmetic as in the original
code, and it does it in the same shape.

Fixes: #45
@dneto0 dneto0 merged commit c9fe9ca into main Nov 27, 2023
8 checks passed
@dneto0 dneto0 deleted the issue-45 branch November 27, 2023 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

subgroup_arithmetic benchmark fails verification due to unexpected gl_SubgroupSize
2 participants