[ExecuTorch][WebGPU] Generate logical and arithmetic binary shader variants - #21451
[ExecuTorch][WebGPU] Generate logical and arithmetic binary shader variants#21451JCNTH wants to merge 3 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/21451
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 16 PendingAs of commit d25c0c2 with merge base f4a21b8 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
v |
|
@claude Double check for need of changes, modulariziation opportunity, etc |
|
Claude finished @JCNTH's task in 1m 58s —— View job Review: WebGPU logical binary shader variants
The shader consolidation is clean and correct. The generated The Main modularization opportunity: the two handler
|
Stack from ghstack (oldest at bottom):
Generate byte-identical logical and arithmetic binary variants from shared WGSL families
Logical AND/OR and four arithmetic binary kernels duplicated shader skeletons and broadcast logic. This consolidates logical AND/OR behind one packed-Boolean family and minimum/pow/floor_divide/mul into the existing binary family, with a permanent mixed-rank broadcast contract.
Key changes:
No runtime C++ dispatch, bindings, pipeline construction, workgroups, or expanded shader payloads change. Four standalone WGSL inputs are removed, and future compatible variants require manifest entries instead of copied kernels. This follows the Vulkan binary-family pattern.
Co-authored-with: Claude Code.
@exported-using-ghexport
Differential Revision: D113979789
Differential Revision: D113979789