[llvm] [LLVM] Update CUDA ELF flags for their new ABI (PR #149534)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 18 13:00:56 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,
----------------
Artem-B wrote:
Would it make sense to define the values as `100 << 8` and `120 << 8`?
https://github.com/llvm/llvm-project/pull/149534
More information about the llvm-commits
mailing list