[Mlir-commits] [mlir] [MLIR][NVVM] Add family-conditional support to NVVMRequiresSM traits (PR #185909)

Durgadoss R llvmlistbot at llvm.org
Fri Mar 13 05:16:58 PDT 2026


================
@@ -23,55 +23,77 @@ namespace NVVM {
 
 // Struct to store and check compatibility of SM versions.
 struct NVVMCheckSMVersion {
-  // Set to true if the SM version is accelerated (e.g., sm_90a).
-  bool archAccelerated;
+  struct SMVersion {
+    unsigned version;
+    // Set to true if the SM version is accelerated (e.g., sm_90a).
+    bool archAccelerated;
+    // Set to true if the SM version is family-specific (e.g., sm_100f).
+    bool familySpecific;
----------------
durga4github wrote:

Can we use sm100 as an example in all the comments here?
```
    // Base sm version (e.g. sm_100)
    unsigned version;
    // Set to true if the SM version is accelerated (e.g., sm_100a).
    bool archAccelerated;
    // Set to true if the SM version is family-specific (e.g., sm_100f).
    bool familySpecific;
```

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


More information about the Mlir-commits mailing list