[llvm-branch-commits] [llvm] [LLVM] Update CUDA ELF flags for their new ABI (PR #159451)
Artem Belevich via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Sep 17 14:02:10 PDT 2025
================
@@ -672,14 +675,36 @@ StringRef ELFObjectFileBase::getNVPTXCPUName() const {
return "sm_86";
case ELF::EF_CUDA_SM87:
return "sm_87";
+ case ELF::EF_CUDA_SM88:
+ return "sm_88";
// Ada architecture.
case ELF::EF_CUDA_SM89:
return "sm_89";
// Hopper architecture.
case ELF::EF_CUDA_SM90:
- return getPlatformFlags() & ELF::EF_CUDA_ACCELERATORS ? "sm_90a" : "sm_90";
+ return getPlatformFlags() & ELF::EF_CUDA_ACCELERATORS_V1 ? "sm_90a"
+ : "sm_90";
+
+ // Blackwell architecture.
+ case ELF::EF_CUDA_SM100:
+ return getPlatformFlags() & ELF::EF_CUDA_ACCELERATORS ? "sm_100a"
+ : "sm_100";
+ case ELF::EF_CUDA_SM101:
+ return getPlatformFlags() & ELF::EF_CUDA_ACCELERATORS ? "sm_101a"
+ : "sm_101";
+ case ELF::EF_CUDA_SM103:
+ return getPlatformFlags() & ELF::EF_CUDA_ACCELERATORS ? "sm_103a"
+ : "sm_103";
+ case ELF::EF_CUDA_SM110:
+ return getPlatformFlags() & ELF::EF_CUDA_ACCELERATORS ? "sm_110a"
+ : "sm_110";
+
+ // Rubin architecture.
----------------
Artem-B wrote:
I believe sm_120 is still blackwell. It's used on the RTX50x0 GPUs. I think NVIDIA calls it Blackwell V2.0.
- https://developer.nvidia.com/cuda-gpus
https://github.com/llvm/llvm-project/pull/159451
More information about the llvm-branch-commits
mailing list