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

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 17:55:29 PDT 2024


================
@@ -26,24 +27,38 @@ static cl::opt<bool>
     NoF16Math("nvptx-no-f16-math", cl::Hidden,
               cl::desc("NVPTX Specific: Disable generation of f16 math ops."),
               cl::init(false));
+static cl::opt<unsigned>
+    NextSM("nvptx-next-sm", cl::Hidden,
+           cl::desc("NVPTX Specific: Override SM ID for sm_next."),
+           cl::init(90));
----------------
jhuber6 wrote:

Do we not have a file somewhere  that lists the last CUDA arch and PTX version? I feel like this will get out of date very fast.

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


More information about the llvm-commits mailing list