From 802e44e9d0161585179853287b0b0bee3d045d0c Mon Sep 17 00:00:00 2001 From: Jason Tang Date: Thu, 26 Nov 2020 18:17:46 -0500 Subject: [PATCH] Make the Target ID ELF definition only visible to HIP Change-Id: I5a87bed806239839156cc4af56d339bfdefc90c6 [ROCm/clr commit: 87762850d3ba15ea15ff8ae8f0d7ca140867b5f7] --- projects/clr/rocclr/elf/elfio/elf_types.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/clr/rocclr/elf/elfio/elf_types.hpp b/projects/clr/rocclr/elf/elfio/elf_types.hpp index 79938f791d..7bfe08f086 100644 --- a/projects/clr/rocclr/elf/elfio/elf_types.hpp +++ b/projects/clr/rocclr/elf/elfio/elf_types.hpp @@ -367,6 +367,9 @@ typedef uint64_t Elf64_Off; #define ELFOSABI_NSK 14 // Hewlett-Packard Non-Stop Kernel #define ELFOSABI_AROS 15 // Amiga Research OS #define ELFOSABI_FENIXOS 16 // The FenixOS highly scalable multi-core OS + +#if defined(__HIP_ROCclr__) + // 64-255 Architecture-specific value range #define ELFOSABI_AMDGPU_HSA 64 // AMDGPU OS for HSA compatible compute // kernels. @@ -465,6 +468,8 @@ typedef uint64_t Elf64_Off; #define EF_AMDGPU_FEATURE_SRAMECC_OFF_V4 0x800 #define EF_AMDGPU_FEATURE_SRAMECC_ON_V4 0xc00 +#endif //__HIP_ROCclr__ + ///////////////////// // Sections constants