[clang] [llvm] [CUDA] Add a pseudo GPU sm_next which allows overriding for SM/PTX version. (PR #100247)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 16:17:53 PDT 2024


================
@@ -96,6 +96,7 @@ static const OffloadArchToStringMap arch_names[] = {
     SM(89),                          // Ada Lovelace
     SM(90),                          // Hopper
     SM(90a),                         // Hopper
+    SM(next),                        // Placeholder for a new arch.
----------------
Artem-B wrote:

The position of the entry in the table does not matter. Each entry will contain appropriate `OffloadArch::SM_##sm` enum. `SM(next)` will carry its own `OffloadArch::SM_next`. and it will remain so even when a new GPU gets added. The new GPU will get its own enum.

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


More information about the llvm-commits mailing list