[llvm] [LLVM] Update CUDA ELF flags for their new ABI (PR #149534)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 18 13:02:16 PDT 2025


================
@@ -954,12 +961,22 @@ enum : unsigned {
   // The target is using 64-bit addressing.
   EF_CUDA_64BIT_ADDRESS = 0x400,
   // Set when using the sm_90a processor.
-  EF_CUDA_ACCELERATORS = 0x800,
+  EF_CUDA_ACCELERATORS_V1 = 0x800,
   // Undocumented software feature.
   EF_CUDA_SW_FLAG_V2 = 0x1000,
 
   // Virtual processor selection mask for EF_CUDA_VIRTUAL_SM* values.
   EF_CUDA_VIRTUAL_SM = 0xff0000,
+
+  // Processor selection mask for EF_CUDA_SM* values following blackwell.
+  EF_CUDA_SM_MASK = 0xff00,
+
+  // SM based processor values.
+  EF_CUDA_SM100 = 0x6400,
+  EF_CUDA_SM120 = 0x7800,
----------------
jhuber6 wrote:

We already use hex and this is what it looks like if you check the elf flags with readelf so I figured it's okay (even though it is just the number)

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


More information about the llvm-commits mailing list