[clang] [CUDA] Add support for sm101 and sm120 target architectures (PR #127187)

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 14 16:27:44 PST 2025


================
@@ -21,9 +21,17 @@ class SM<string version, list<SMFeatures> newer_list> : SMFeatures {
                         !strconcat(f, "|", newer.Features));
 }
 
+let Features = "sm_120a" in def SM_120a : SMFeatures;
+
+def SM_120 : SM<"120", [SM_120a]>;
+
+let Features = "sm_101a" in def SM_101a : SMFeatures;
+
+def SM_101 : SM<"101", [SM_101a, SM_120]>;
+
 let Features = "sm_100a" in def SM_100a : SMFeatures;
 
-def SM_100 : SM<"100", [SM_100a]>;
+def SM_100 : SM<"100", [SM_100a, SM_101]>;
----------------
Artem-B wrote:

Almost there. Now move all SM_xxx records down to where we define the rest of them, and group `let Features...` ones together above them.

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


More information about the cfe-commits mailing list