Skip to content

[executorch][cuda] Winograd schedule for strict-FP32 dense 3x3 stride-1 convolutions - #25271

Merged
Gasoonjia merged 1 commit into
gh/Gasoonjia/121/origfrom
gh/Gasoonjia/122/orig
Nov 19, 2026
Merged

Gasoonjia merged 1 commit into
gh/Gasoonjia/121/origfrom
gh/Gasoonjia/122/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/25271

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

⏳ No Failures, 44 Pending

As of commit 70e94a0 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
…-1 convolutions

In strict FP32 (TF32 off), dense 3x3 stride-1 convolutions with many output tiles are bound by FMA throughput: the FMA schedules and Inductor's template pay 9 multiply-adds per output and channel pair, and split-K only helps outputs too small to fill the GPU, so larger layers stayed with Inductor.

The implicit-GEMM template gains `winograd_f4`, one more compile-time candidate for strict-FP32 dense 3x3 stride-1 padding-1 2-D calls. It computes each 4x4 output tile from a 6x6 input tile with 36 products instead of 144 per channel pair: weight and input transforms, 36 batched IEEE-FP32 GEMMs with autotuned tiles, and an output transform that adds the bias and stores through the output strides. Balanced transform points keep the error close to a direct convolution. `worth_routing` gains a Winograd range: 64 to 512 input and output channels within the stage batch, extent and input-pixel limits, contiguous layouts, any output size. The new `winograd_boundary` suite measures its 28 corners: all are significantly faster than Inductor on an A100 (1.79-8.9x), per-call weight transform included.

`test_conv_implicit_gemm.py` runs `winograd_f4` with every config wherever it is legal, on odd sizes, deep and shallow reductions, both input layouts, with and without bias and in three output layouts. `test_conv_routing.py` routes every Winograd corner and keeps one step past each limit.

This diff was authored with Claude Code.

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

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


ghstack-source-id: 477683753
Pull-Request: #25239
@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 cc74dd9 into main Nov 19, 2026
@Gasoonjia
Gasoonjia deleted the gh/Gasoonjia/122/orig branch November 19, 2026 07:26
@Gasoonjia
Gasoonjia temporarily deployed to upload-benchmark-results November 19, 2026 09:49 — with GitHub Actions Inactive
@Gasoonjia
Gasoonjia temporarily deployed to upload-benchmark-results November 19, 2026 12:28 — with GitHub Actions Inactive

This branch was previously deployed

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