Repository navigation
[executorch][cuda] Widen the implicit-GEMM routing table with measured shape classes - #25275
Conversation
🔗 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 PendingAs of commit df0fb49 with merge base fe24cf5 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…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
e1d0e4e to
df0fb49
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: #25243 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/126/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/Gasoonjia/126/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/Gasoonjia/125/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/Gasoonjia/126/orig
Differential Revision: D130297467
@diff-train-skip-merge