[BACKEND] Solidify f8e4m3 (#2105)

Co-authored-by: Philippe Tillet <phil@openai.com>
This commit is contained in:
Zahi Moudallal
2023-08-18 19:12:09 -07:00
committed by GitHub
parent 23ef2615d2
commit 23dd11d471
18 changed files with 171 additions and 172 deletions

View File

@@ -361,7 +361,7 @@ bool supportMMA(triton::DotOp op, int version) {
int numWarps = triton::gpu::TritonGPUDialect::getNumWarps(mod);
if (!(numWarps % 4 == 0 && retShapePerCTA[0] % 64 == 0 &&
retShapePerCTA[1] % 8 == 0 &&
(aElemTy.isFloat8E5M2() || aElemTy.isFloat8E4M3FN() ||
(aElemTy.isFloat8E5M2() || aElemTy.isFloat8E4M3FNUZ() ||
aElemTy.isInteger(8) || aElemTy.isF16() || aElemTy.isBF16() ||
aElemTy.isF32()))) {
return false;