[ExecuTorch][WebGPU] Shared pipeline + dispatch-grid + vec4-align helpers (op-suite foundation)#20842
Open
JCNTH wants to merge 3 commits into
Open
[ExecuTorch][WebGPU] Shared pipeline + dispatch-grid + vec4-align helpers (op-suite foundation)#20842JCNTH wants to merge 3 commits into
JCNTH wants to merge 3 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20842
Note: Links to docs will display an error until the docs builds have been completed. ❌ 57 New Failures, 2 Unrelated Failures, 8 Unclassified FailuresAs of commit 514fc49 with merge base c2b273e ( NEW FAILURES - The following jobs have failed:
UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures 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. |
This PR needs a
|
This was referenced Jul 10, 2026
[ExecuTorch][WebGPU] Add relu op (shared unary handler; sigmoid adopts make_compute_pipeline)
#20863
Open
This was referenced Jul 10, 2026
This was referenced Jul 16, 2026
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.
Stack from ghstack (oldest at bottom):
Foundation for the vision/voice/seg WebGPU op suite: the shared helpers every op builds on. Adds to
WebGPUUtils.hthemake_compute_pipelinebundle (BindingSpec,ComputePipelineBundle,make_storage_zeros),check_vec4_aligned, and the validation/dispatch-config helpers every handler reuses:check_fp32andcheck_elementwise_fp32_io(fp32 byte-size + elementwise input/output guards),checked_u32(theuint64_t->uint32_tdispatch-count guard),make_wg_size_constant(the 1-element override-constant sibling ofmake_grid_constants), andcompute_tile_grid_2d(the tiled-GEMM 2D grid, device-limit-queried); a newWebGPUDispatchMath.hwith the near-square 2D dispatch-grid fold (div_up,numel); aWebGPUGraph::add_dispatch_2dconvenience for the 2D dispatch fill; sharedWebGPUGraphhooks; and op-test-driver infra (+test_webgpu_utils). No op is registered here — each op lands on top using these helpers.Co-authored-with: Claude Code.
@exported-using-ghexport
Differential Revision: D110836666
Differential Revision: D110836666