Repository navigation
[LLVMGPU] Tile outer reduction dimensions in contraction config - #25044
Open
purnima-nlp wants to merge 1 commit into
Open
purnima-nlp wants to merge 1 commit into
purnima-nlp wants to merge 1 commit into
Conversation
purnima-nlp
requested review from
AGindinson,
Groverkss,
egebeysel,
krzysz00 and
ziereis
as code owners
October 14, 2026 11:37
Signed-off-by: purnima <[email protected]>
purnima-nlp
force-pushed
the
fix-llvmgpu-multi-reduction-tiling
branch
from
November 25, 2026 06:22
bdc78e0 to
84ad0a4
Compare
Contributor
Author
|
Hi, gentle ping on this PR. This patch addresses excessive IR expansion during LLVMGPU vector lowering for contractions with multiple reduction dimensions, reducing the expanded IR size from approximately 13.4 MB to 4.5 KB in the reported reproducer. All executed CI tests have passed. I'd appreciate a review when someone has bandwidth. Happy to address any feedback or concerns regarding the tiling strategy. Thanks! |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LLVMGPU contraction configuration previously assigned the reduction tile size only to the last loop dimension, leaving outer reduction dimensions untiled. For contractions with multiple reduction dimensions, this could cause excessive IR expansion during vector lowering.
This PR uses the inferred contraction K dimensions to tile outer reduction dimensions with size
1, while preservingtileKfor the innermost K dimension.Changes
1to prevent excessive IR expansion.Results
For a contraction with reduction dimensions
[128, 112, 112]:math.fmaoperations:** Reduced from 14,336 to 1.These measurements reflect compiler IR expansion, not GPU runtime performance.
Testing
Fixes #25016.