Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/Conversion/TritonGPUToLLVM/ConvertLayoutOpToLLVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ using ::mlir::LLVM::linearize;

using namespace mlir::triton::gpu;

// XXX(Keren): A temporary knob to control the use of legacy MMA conversion
// because LinearLayout seems to have some performance issues.
constexpr bool useLegacyMMAConversion = false;

struct ConvertLayoutOpConversion
: public ConvertOpToLLVMPattern<ConvertLayoutOp> {
public:
Expand Down Expand Up @@ -378,6 +382,9 @@ struct ConvertLayoutOpUsingLinearLayoutsConversion
/*accumNumReplicates=*/1)) {
return false;
}
if (useLegacyMMAConversion) {
return false;
}
return true;
}
if (isa<BlockedEncodingAttr>(layout)) {
Expand Down