Repository navigation
[executorch][cuda] Winograd schedule for strict-FP32 dense 3x3 stride-1 convolutions - #25271
Conversation
🔗 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 PendingAs of commit 70e94a0 with merge base fe24cf5 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…-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
dcb835f to
70e94a0
Compare
This PR needs a
|
This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #25239 by @Gasoonjia
^ 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/Gasoonjia/122/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/Gasoonjia/122/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/Gasoonjia/121/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/Gasoonjia/122/orig
Differential Revision: D129890349
@diff-train-skip-merge