Skip to content

Commit

Permalink
[AMD] Skip mfma layout in maybeDuplicate
Browse files Browse the repository at this point in the history
The workaround introduced in
triton-lang#4048 "forgot" to skip mfma layout.
  • Loading branch information
zhanglx13 committed Jun 19, 2024
1 parent f04df24 commit c79231d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ class ElementwiseOpConversionBase : public ConvertOpToLLVMPattern<SourceOp> {
// encoding not available
return resultVals;
Attribute baseEncoding = encoding;
if (isa<AMDMfmaEncodingAttr>(baseEncoding))
return resultVals;
while (auto sliced = dyn_cast<SliceEncodingAttr>(baseEncoding))
baseEncoding = sliced.getParent();
if (isa<NvidiaMmaEncodingAttr, DotOperandEncodingAttr>(baseEncoding)) {
Expand Down

0 comments on commit c79231d

Please sign in to comment.