mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-27 03:01:52 -04:00
enable layout conversion from mfma to dot_op for mfma16. (#453)
* enable the layout conversion from mfma layout to dot_operand layout for mfma16 * backup changes
This commit is contained in:
@@ -612,7 +612,7 @@ bool isMfmaToDotShortcut(RankedTensorType &srcTy, RankedTensorType &dstTy) {
|
|||||||
dotOperandLayout.getOpIdx() == 0 &&
|
dotOperandLayout.getOpIdx() == 0 &&
|
||||||
dotOperandLayout.getKWidth() == 4 &&
|
dotOperandLayout.getKWidth() == 4 &&
|
||||||
dotOperandLayout.getParent() == mfmaLayout &&
|
dotOperandLayout.getParent() == mfmaLayout &&
|
||||||
mfmaLayout.getNonKDim() == 32 && mfmaLayout.getIsTransposed() &&
|
(mfmaLayout.getNonKDim() == 32 || mfmaLayout.getNonKDim() == 16) && mfmaLayout.getIsTransposed() &&
|
||||||
(srcTy.getElementType().isF16() || srcTy.getElementType().isBF16());
|
(srcTy.getElementType().isF16() || srcTy.getElementType().isBF16());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user