[clang] [CUDA] Add support for sm101 target architecture (Tegra Blackwell) (PR #127187)
Artem Belevich via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 14 13:27:02 PST 2025
================
@@ -21,6 +21,10 @@ class SM<string version, list<SMFeatures> newer_list> : SMFeatures {
!strconcat(f, "|", newer.Features));
}
+let Features = "sm_101a" in def SM_101a : SMFeatures;
+
+def SM_101 : SM<"101", [SM_101a]>;
----------------
Artem-B wrote:
This needs some changes.
First, we now have sm120 and 120a and those should be added, too.
Second, the idea here is that for each `def SM_X we need to list other SMs that are its superset`.
When you add a new SM, you need to update the previous most recent SM to include the new one.
E.g.
```
def SM_101 : SM<"101", [SM_101a]>;
def SM_100 : SM<"100", [SM_101, SM_100a]>;
def SM_90 : SM<"90", [SM_100, SM_90a]>;
```
https://github.com/llvm/llvm-project/pull/127187
More information about the cfe-commits
mailing list