mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
[FRONTEND] allow mixed precision FP8 matmul on pre-H100 hardware (#2281)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user