[Mlir-commits] [mlir] [MLIR][AMDGPU] Add OCP FP8 support for new hardware (PR #106160)

Jakub Kuderski llvmlistbot at llvm.org
Tue Sep 17 08:24:59 PDT 2024


================
@@ -47,6 +47,13 @@ struct Chipset {
   DEFINE_COMP_OPERATOR(>)
   DEFINE_COMP_OPERATOR(>=)
 #undef DEFINE_COMP_OPERATOR
+
+  bool isGfx940() const {
+    return majorVersion == 9 && minorVersion >= 4 && minorVersion < 5;
+  }
+  bool hasOcpFp8() const {
+    return (majorVersion == 9 && minorVersion >= 5) || majorVersion >= 12;
+  }
----------------
kuhar wrote:

I don't think these belong in the chipset class, they can be defined as free functions where needed.

https://github.com/llvm/llvm-project/pull/106160


More information about the Mlir-commits mailing list