[ExecuTorch][WebGPU] Generate logical binary shader variants - #21451
[ExecuTorch][WebGPU] Generate logical binary shader variants#21451JCNTH wants to merge 1 commit 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. ❌ 1 New FailureAs of commit 8635a76 with merge base 8200b9e ( NEW FAILURE - The following job has failed:
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/OR variants from one shader family
Logical AND and OR duplicated the same packed-boolean WGSL structure and could drift independently. This moves them into one generated family while preserving each operator token, payload, workgroup, and host route. Mirrors Vulkan
backends/vulkan/runtime/graph/ops/glsl/binary_op_buffer.{glsl,yaml}.Key changes:
logical_binary.wgsland YAML — generate AND and OR variants from the operator token.Runtime bindings and dispatch remain unchanged; tests expand fixture coverage.
Co-authored-with: Claude Code.
Differential Revision: D113979789