File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
lib/Conversion/TritonGPUToLLVM Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -376,13 +376,16 @@ struct ConvertLayoutOpUsingLinearLayoutsConversion
376376 // completed before we can remove the layoutIsOK check:
377377 // 1. Support for AMD's WMMA
378378 std::function<bool (Attribute)> layoutIsOK = [&](Attribute layout) {
379- if (auto dotOperand = dyn_cast<DotOperandEncodingAttr>(layout)) {
380- layout = dotOperand.getParent ();
381- }
382-
383379 if (isa<NvidiaMmaEncodingAttr, AMDMfmaEncodingAttr>(layout)) {
384380 return !useLegacyMMAConversion;
385381 }
382+ if (auto dotOperand = dyn_cast<DotOperandEncodingAttr>(layout)) {
383+ if (isa<NvidiaMmaEncodingAttr, AMDMfmaEncodingAttr>(
384+ dotOperand.getParent ())) {
385+ return !useLegacyMMAConversion;
386+ }
387+ return false ;
388+ }
386389 if (isa<BlockedEncodingAttr, LinearEncodingAttr>(layout)) {
387390 return true ;
388391 }
You can’t perform that action at this time.
0 commit comments