Skip to content

[ExecuTorch][WebGPU] Shared pipeline + dispatch-grid + vec4-align helpers (op-suite foundation)#20842

Open
JCNTH wants to merge 1 commit into
gh/JCNTH/17/basefrom
gh/JCNTH/17/head
Open

[ExecuTorch][WebGPU] Shared pipeline + dispatch-grid + vec4-align helpers (op-suite foundation)#20842
JCNTH wants to merge 1 commit into
gh/JCNTH/17/basefrom
gh/JCNTH/17/head

Conversation

@JCNTH

@JCNTH JCNTH commented Jul 10, 2026

Copy link
Copy Markdown

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.h the make_compute_pipeline bundle (BindingSpec, ComputePipelineBundle, make_storage_zeros), check_vec4_aligned, and the validation/dispatch-config helpers every handler reuses: check_fp32 and check_elementwise_fp32_io (fp32 byte-size + elementwise input/output guards), checked_u32 (the uint64_t->uint32_t dispatch-count guard), make_wg_size_constant (the 1-element override-constant sibling of make_grid_constants), and compute_tile_grid_2d (the tiled-GEMM 2D grid, device-limit-queried); a new WebGPUDispatchMath.h with the near-square 2D dispatch-grid fold (div_up, numel); a WebGPUGraph::add_dispatch_2d convenience for the 2D dispatch fill; shared WebGPUGraph hooks; 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.

Differential Revision: D110836666

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Jul 10, 2026

Copy link
Copy Markdown

🔗 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.

✅ You can merge normally! (1 Unrelated Failure)

As of commit e8b7c8d with merge base aceeb40 (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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 10, 2026
@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

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