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

Make use of newly added subgroups #1

Open
alienself opened this issue Sep 1, 2024 · 3 comments
Open

Make use of newly added subgroups #1

alienself opened this issue Sep 1, 2024 · 3 comments

Comments

@alienself
Copy link

alienself commented Sep 1, 2024

Hi,

Quick question, since Chrome 125, webgpu now has subgroups, would it be possible to add native support for them using the currently available WGSL API?

See: https://developer.chrome.com/blog/new-in-webgpu-128#experimenting_with_subgroups

Thanks!

@KeKsBoTer
Copy link
Owner

I tried it in the past but chrome returned 0 for min and max subgroup size.
I have to check for newer versions

@alienself
Copy link
Author

It seems like they made some changes since Chrome 128 and are experimenting with the proposal so it's not in the officel WGSL spec yet, meaning it's behind the webgpu flag: chrome://flags/#enable-unsafe-webgpu (or by signing up for the origin trial) for the next 4 versions of chrome. All the subgroup functions mentioned in the proposal should be available.

Let me know if you end up digging into it again, it would be amazing to finally have a super fast and optimized sorting solution with webgpu!

@KeKsBoTer
Copy link
Owner

Unfortunately, I get some weird behavior when querying the min and max from the device.
Tested on Ubuntu 24.04 with Chrome 128.
image

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

No branches or pull requests

2 participants