Skip to content

[ET-VK][runtime][3/3] Enforce device-safe dispatch geometry - #22290

Merged
SS-JIA merged 2 commits into
gh/SS-JIA/604/origfrom
gh/SS-JIA/605/orig
Aug 29, 2026
Merged

[ET-VK][runtime][3/3] Enforce device-safe dispatch geometry#22290
SS-JIA merged 2 commits into
gh/SS-JIA/604/origfrom
gh/SS-JIA/605/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: #22225 by @SS-JIA
^ 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/SS-JIA/605/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/605/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/SS-JIA/604/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/605/orig
Differential Revision: D117706355
@diff-train-skip-merge

Pull Request resolved: #22225

Migrate dispatch, prepack, profiling, and workgroup picker interfaces to
`GlobalWorkGrid` and `LocalWorkGroup`. Wrap oversized linear grids using device
limits and validate final geometry before `vkCmdDispatch`.

Carry exact local geometry as `GlobalWorkGrid` metadata. Cooperative and
reduction grid pickers set it explicitly, while `pick_required_lwg` validates
and returns it. Preserve elongated Conv1d depthwise workgroups where the
default shape would regress GPU latency. Add end-to-end oversized linear
dispatch coverage.

Authored with Codex.
ghstack-source-id: 421281492
@exported-using-ghexport

Differential Revision: [D117706355](https://our.internmc.facebook.com/intern/diff/D117706355/)
@pytorchbot
pytorchbot requested a review from SS-JIA as a code owner August 28, 2026 23:03
@pytorch-bot

pytorch-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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 Aug 28, 2026
Add batch-aware direct, pointwise, depthwise, and im2col q8ta convolution dispatch. Batched im2col uses an NCHW scratch tensor and batch-strided shader indexing, with conservative groups=1 high-K/small-spatial routing bounded by a 32 MiB scratch cap. Grouped and large-spatial convolutions stay on the direct path. Authored with Codex.

Differential Revision: [D117869783](https://our.internmc.facebook.com/intern/diff/D117869783/)


ghstack-source-id: 421281491
Pull-Request: #22254
@SS-JIA
SS-JIA merged commit 937083b into gh/SS-JIA/604/orig Aug 29, 2026
170 of 171 checks passed
@SS-JIA
SS-JIA deleted the gh/SS-JIA/605/orig branch August 29, 2026 00:28
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