Skip to content

[executorch][cuda] Widen the implicit-GEMM routing table with measured shape classes - #25275

Merged
Gasoonjia merged 1 commit into
gh/Gasoonjia/125/origfrom
gh/Gasoonjia/126/orig
Nov 19, 2026
Merged

Gasoonjia merged 1 commit into
gh/Gasoonjia/125/origfrom
gh/Gasoonjia/126/orig

Conversation

@pytorchbot

Copy link
Copy Markdown
Collaborator

@pytorch-bot

pytorch-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

⏳ No Failures, 49 Pending

As of commit df0fb49 with merge base fe24cf5 (image):
💚 Looks good so far! There are no failures yet. 💚

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 Nov 19, 2026
@Gasoonjia
Gasoonjia added this pull request to stack #25281 November 19, 2026 06:45
…d shape classes

Several convolution shapes keep Inductor's template although the implicit-GEMM schedules run them significantly faster. Winograd stopped at the split-K stage caps though it does a quarter of the multiplies at any size; the stage range stopped at 160K outputs and 256 input channels; unpadded stride-2 encoder layers and deep 1x1 convolutions had no class; and (3,1,1) stride-(2,1,1) 3-D convolutions were not routed.

`worth_routing` gains classes set inside the edges of explore sweeps:
Winograd without batch or extent limits (its 32-bit indexing bounds it); stage convolutions from 512 to 240K outputs, stride 2 up to 1024 input channels, plus unpadded stride-2 3x3 with 64 channels and 5x5 with 32 to 64 (32-channel 3x3 stays out: its corners came within 1.3x); strict-FP32 1x1 stride-1 with 512 to 2048 input and 32 to 256 output channels and 32K to 128K outputs; and FP16/BF16 (3,1,1) stride-(2,1,1) with 256 to 1024 input and 128 to 1024 output channels and 64 to 2048 output pixels. 3-D ranges become one table. The benchmark gains a `pointwise_boundary` suite and a flag for Inductor without layout optimization.

Every corner is significantly faster than Inductor on an A100: stage 45/45 (1.40-6.5x), Winograd 16/16 (1.87-8.5x), 3-D 96/96 (1.43-13.7x), 1x1 16/16 with layout optimization (1.36-3.2x) and without (1.74-5.3x).

`test_conv_routing.py` routes every corner and keeps one step past each limit.

This diff was authored with Claude Code.

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

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D130297467/)!


ghstack-source-id: 477683768
Pull-Request: #25243
@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.

@Gasoonjia
Gasoonjia merged commit eca9808 into main Nov 19, 2026
@Gasoonjia
Gasoonjia deleted the gh/Gasoonjia/126/orig branch November 19, 2026 07:26
@Gasoonjia
Gasoonjia temporarily deployed to upload-benchmark-results November 19, 2026 09:23 — with GitHub Actions Inactive
@Gasoonjia
Gasoonjia temporarily deployed to upload-benchmark-results November 19, 2026 12:07 — with GitHub Actions Inactive

This branch was previously deployed

2 inactive deployments
upload-benchmark-results — df0fb492 Deployed Nov 19, 2026 by Gasoonjia
cadence — df0fb492 Deployed Nov 19, 2026 by Gasoonjia
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