-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`index_cast` is supported, so there is not reason why `index_castui` shouldn't be supported. `index_castui` happens to appear in our Triton fusion emitter. Without this change Triton fails to correctly propagate axis info and do layout optimization. PiperOrigin-RevId: 696500599
- Loading branch information
1 parent
f908c44
commit 2465051
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
third_party/triton/temporary/index_cast_ui_axis_info.patch
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- a/lib/Analysis/AxisInfo.cpp | ||
+++ b/lib/Analysis/AxisInfo.cpp | ||
@@ -1011,6 +1011,7 @@ AxisInfoAnalysis::AxisInfoAnalysis(DataF | ||
CastOpAxisInfoVisitor<arith::ExtUIOp>, | ||
CastOpAxisInfoVisitor<arith::TruncIOp>, | ||
CastOpAxisInfoVisitor<arith::IndexCastOp>, | ||
+ CastOpAxisInfoVisitor<arith::IndexCastUIOp>, | ||
CastOpAxisInfoVisitor<triton::gpu::ConvertLayoutOp>, | ||
CastOpAxisInfoVisitor<mlir::UnrealizedConversionCastOp>, | ||
CastOpAxisInfoVisitor<triton::BitcastOp>>(); |
This file contains 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