[FRONTEND] allow mixed precision FP8 matmul on pre-H100 hardware (#2281)

This commit is contained in:
Philippe Tillet
2023-09-11 20:54:29 -07:00
committed by GitHub
parent a5e483652b
commit bf4f9375a7
3 changed files with 5 additions and 2 deletions

View File

@@ -384,7 +384,8 @@ bool supportMMA(Value value, int version) {
// FP8 is not natively supported on all mma versions but it can always be
// promoted to fp16 therefore we can always support it.
bool isFP8 = elemTy.isFloat8E5M2() || elemTy.isFloat8E4M3FN() ||
elemTy.isFloat8E5M2FNUZ() || elemTy.isFloat8E4M3FNUZ();
elemTy.isFloat8E5M2FNUZ() || elemTy.isFloat8E4M3FNUZ() ||
elemTy.isFloat8E4M3B11FNUZ();
return isFP8 || elemTy.isF16() || elemTy.isBF16() ||
(elemTy.isF32() && version >= 2) ||
(elemTy.isInteger(8) && version >= 2);