[ExecuTorch][WebGPU] Unit tests for the WGSL shader-variant codegen#20728
[ExecuTorch][WebGPU] Unit tests for the WGSL shader-variant codegen#20728JCNTH wants to merge 4 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20728
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 Cancelled Job, 1 Unrelated FailureAs of commit d3a4296 with merge base 4af91c3 ( NEW FAILURE - The following job has failed:
CANCELLED JOB - The following job was cancelled. Please retry:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
@claude throoughly review, check for overengineering, correctness, and areaas for modularization |
|
Claude finished @JCNTH's task in 2m 40s —— View job Review: WGSL shader-variant codegen unit tests
Solid, well-targeted test suite. The names are descriptive, the docstrings capture the why (the DD-009
Correctness
Overengineering
Modularization
Coverage gaps (optional, not blocking)
Nit
None of the above blocks the PR — the suggestions are hardening the drift-guard and closing a few inherited-branch gaps. Nice work on the byte-identity and DD-009 regression cases. |
Stack from ghstack (oldest at bottom):
Additive coverage for the template engine added in the previous diff.
Key additions (
test/test_wgsl_codegen.py,WgslTemplateEngineTest):preprocess$if/$elsebranch selection +${...}substitution + guarded-body indentation.SUFFIXrules (""suppresses; defaults tostr(VALUE)).parse_template_spec— minimal-spec expansion, duplicate-key rejection (via theUniqueKeyLoader), top-level-key validation.buffer_scalar_type/buffer_gvec_type/accum_scalar_type).rms_normheaders from the template +rms_norm.yaml.$-block transpiler helpers and theUniqueKeyLoaderstay character-identical togen_vulkan_spv.py(guards against silent drift).@exported-using-ghexport
Differential Revision: D110660006
Differential Revision: D110660006