Skip to content

[ExecuTorch][WebGPU] Remove the orphan q4gsw_linear_coop4 shader#21007

Merged
JCNTH merged 2 commits into
gh/JCNTH/86/origfrom
gh/JCNTH/87/orig
Jul 17, 2026
Merged

[ExecuTorch][WebGPU] Remove the orphan q4gsw_linear_coop4 shader#21007
JCNTH merged 2 commits into
gh/JCNTH/86/origfrom
gh/JCNTH/87/orig

Conversation

@pytorchbot

Copy link
Copy Markdown
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #20955 by @JCNTH
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/JCNTH/87/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/JCNTH/87/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/JCNTH/86/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/JCNTH/87/orig

@diff-train-skip-merge

Pull Request resolved: #20955

`q4gsw_linear_coop4.wgsl` is an unwired dead shader: no handler `#include`s its generated `q4gsw_linear_coop4_wgsl.h`, and it is superseded by `q4gsw_linear_coop4_bicol.wgsl` (the live GEMV decode kernel that `QuantizedLinear.cpp` uses). Remove the shader and its generated header.

Key changes:
- Deleted `q4gsw_linear_coop4.wgsl` and `q4gsw_linear_coop4_wgsl.h`.
- Dropped a stale reference to the removed kernel in `test_quantized_linear.py` and `test_webgpu_native.cpp` comments.

No build/CMake change: `WEBGPU_SRCS` lists only `.cpp`, and shaders wire via the `gen_wgsl_headers.py` glob (no static list), so removing both files leaves codegen drift-clean.

Co-authored-with: Claude Code.
ghstack-source-id: 403097256
@exported-using-ghexport

Differential Revision: [D112060303](https://our.internmc.facebook.com/intern/diff/D112060303/)
@pytorch-bot

pytorch-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/21007

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 17, 2026
…rable

Pull Request resolved: #20956

Add a native gtest that locks the wg-size configurability guarantee: the same rms_norm WGSL, run at override `wg_size` 64 and 128, must produce the same output. `Module::forward` always uses the handler-clamped size (64), so the test builds the compute pipeline directly and sets `wg_size` via a `WGPUConstantEntry`, mirroring the runtime pipeline setup + `WebGPUGraph::copy_outputs` readback.

Key changes:
- `test/test_webgpu_native.cpp` — `run_rms_norm_at_wg()` standalone-pipeline helper + `RmsNormWorkgroupSizeConfigurable` test (element-wise agree within abs 1e-4 / rel 1e-3, plus a non-zero sanity guard).

Self-contained (no `.pte`/export), so it runs inside `webgpu_native_test` under `test_webgpu_native_ci.sh` with no new wiring. Absolute rms_norm correctness stays covered by the model-driven golden tests; this adds the "128 matches 64" guarantee.

Co-authored-with: Claude Code.
ghstack-source-id: 403097259
@exported-using-ghexport

Differential Revision: [D112060302](https://our.internmc.facebook.com/intern/diff/D112060302/)
@JCNTH
JCNTH merged commit 42acaff into gh/JCNTH/86/orig Jul 17, 2026
23 of 24 checks passed
@JCNTH
JCNTH deleted the gh/JCNTH/87/orig branch July 17, 2026 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants