Repository navigation
[ExecuTorch][WebGPU] Repair stacked merge artifacts - #21669
Merged
Merged
Conversation
The squash merge for #21646 duplicated the fp16 upload and BOOL conversion paths and dropped three native route tests. Restore the source that matches the reviewed fbsource stack, including compile-gating timestamp profiling. Test Plan: exact tree comparison against the reconstructed 21-diff stack; git diff --check; GitHub CI. Co-authored-with: OpenAI Codex. Signed-off-by: Julian Ng-Thow-Hing <juliannth@meta.com>
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/21669
Note: Links to docs will display an error until the docs builds have been completed. ❌ 50 New Failures, 87 Pending, 4 Unrelated Failures, 1 Unclassified FailureAs of commit 1893397 with merge base ceca90f ( NEW FAILURES - The following jobs have failed:
UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR repairs merge artifacts in the WebGPU backend by removing duplicated runtime paths and restoring missing native route/registry tests, aligning the tree with the reviewed fbsource stack (including compile-gated timestamp profiling).
Changes:
- Restore three native tests covering shader registry lookup, q4 route signaling behavior, and conv1d route selection.
- Remove duplicated bool→float conversion implementation in
to_copy. - Repair WebGPU profiling compile-gating so timestamp-query helpers are only compiled when
WGPU_BACKEND_ENABLE_PROFILINGis enabled.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| backends/webgpu/test/native/test_compute_dispatch.cpp | Restores coverage for shader registry, q4 route signals/topology, and conv1d route selection. |
| backends/webgpu/runtime/WebGPUGraph.cpp | Fixes preprocessor scoping for timestamp-query profiling helpers (compile-gated). |
| backends/webgpu/runtime/ops/to_copy/ToCopy.cpp | Removes duplicated bool→float conversion path to avoid merge-artifact duplication. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
psiddh
approved these changes
Aug 7, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The squash merge for #21646 duplicated the fp16 upload and BOOL conversion paths and dropped three native route tests. Restore the source that matches the reviewed fbsource stack, including compile-gating timestamp profiling.
Test Plan: exact tree comparison against the reconstructed 21-diff stack; git diff --check; GitHub CI.
Co-authored-with: OpenAI Codex.