Conversation
* API
* new feature: subgroups
* new properties for adapter info:
* minSubgroupSize
* maxSubgroupSize
* WGSL
* new built-in values
* subgroup_invocation_id
* subgroup_size
* subgroup and quad built-in functions
* new uniformity diagnostic subgroup_uniformity
|
Previews, as seen when this build job started (f950527): |
dneto0
left a comment
There was a problem hiding this comment.
Main question is whether we want a new GPUAdapterProperties object or not
Kangz
left a comment
There was a problem hiding this comment.
Looks great! Added a bunch of comments but they are relatively minor.
kainino0x
left a comment
There was a problem hiding this comment.
No further comments on the API side
* move minSubgroupSize and maxSubgroupSize into GPUAdapterInfo * provide default values * Fix link to wgsl spec * Fix uniformity rules in wgsl related to parameters they are required to be uniform
dneto0
left a comment
There was a problem hiding this comment.
WGSL side looking very good. Thanks!
Co-authored-by: Kai Ninomiya <[email protected]>
* Mention subgroup_size is uniform in compute shaders in the uniformity analysis description of built-in values * Updates to the subgroups section * Fix typos and links
* add notes about uniform control flow scope * add prefix to inclusive and exclusive subgroup op descriptions
* Add extra spec cross-links for subgroups
WGSL 2024-12-10 Minutes
|
This CL adds the subgroupMinSize and subgroupMaxSize properties to GPUAdapterInfo behind the experimental WebGPUSubgroupsFeatures blink runtime feature. Spec PR: gpuweb/gpuweb#4963 Change-Id: I4f9edbd6482a0f7a1f98086bcba1205b5e24ceea Bug: 354751907 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6162500 Reviewed-by: Kai Ninomiya <[email protected]> Commit-Queue: Fr <[email protected]> Cr-Commit-Position: refs/heads/main@{#1405153}
jimblandy
left a comment
There was a problem hiding this comment.
This looks good to me. I have some editorial comments, but nothing blocking.
| Returns the maximum value of `e` among all [=subgroups/active=] invocations in the [=subgroup=]. | ||
| </table> |
There was a problem hiding this comment.
Should this discuss subnormal and NaN behavior, the way the description of max does?
Co-authored-by: Jim Blandy <[email protected]>
Co-authored-by: Jim Blandy <[email protected]>
Spec PR: gpuweb/gpuweb#4963 Bug: 354751907 Change-Id: If5823c0ff95b4de72d0f95e1a5cd1cd92e3b5459 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6163583 Reviewed-by: Kai Ninomiya <[email protected]> Reviewed-by: David Neto <[email protected]> Reviewed-by: Alan Baker <[email protected]> Commit-Queue: Fr <[email protected]> Cr-Commit-Position: refs/heads/main@{#1409490}
minSubgroupSizesubgroupMinSizemaxSubgroupSizesubgroupMaxSizeMissing subgroup_branching diagnostic and uniformity updates.
edited to match final naming: 'minSubgroupSize' was changed to 'subgroupMinSize', 'maxSubgroupSize' was changed to 'subgroupMaxSize'