From 873ab65331a0cf8d0034a6f2ee18b5f28a73d6bd Mon Sep 17 00:00:00 2001 From: Tao Sang Date: Mon, 14 Sep 2020 23:38:40 -0400 Subject: [PATCH] Resolve macro conflict in opencl build Change-Id: I752dff96652a55e4fbf719e84ee7d3ec49f5f20a [ROCm/clr commit: 77c9226d8789c3a275a958ce75986dea195229cb] --- projects/clr/rocclr/elf/elfio/elf_types.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/rocclr/elf/elfio/elf_types.hpp b/projects/clr/rocclr/elf/elfio/elf_types.hpp index 92788db92d..8215b6c247 100644 --- a/projects/clr/rocclr/elf/elfio/elf_types.hpp +++ b/projects/clr/rocclr/elf/elfio/elf_types.hpp @@ -378,7 +378,7 @@ typedef uint64_t Elf64_Off; // AMDGPU specific e_flags #define EF_AMDGPU_MACH 0x0ff // AMDGPU processor selection mask. -#define EF_AMDGPU_XNACK 0x100 // Indicates if the XNACK target feature is +//#define EF_AMDGPU_XNACK 0x100 // Indicates if the XNACK target feature is // enabled for all code contained in the ELF. // AMDGPU processors #define EF_AMDGPU_MACH_NONE 0x000 // Unspecified processor. @@ -506,7 +506,7 @@ typedef uint64_t Elf64_Off; #define STT_COMMON 5 #define STT_TLS 6 #define STT_LOOS 10 -#define STT_AMDGPU_HSA_KERNEL 10 +#define STT_AMDGPU_HSA_KERNEL (STT_LOOS + 0) #define STT_HIOS 12 #define STT_LOPROC 13 #define STT_HIPROC 15