From db021abf33d325303500c883902be9150bcd3c22 Mon Sep 17 00:00:00 2001 From: Dan Palermo Date: Fri, 23 Sep 2022 01:49:51 +0000 Subject: [PATCH] [OpenMP][AMDGPU] Enable OpenMP device runtime build for gfx110[0123] Add OpenMP device runtime build support for the gfx1100, gfx1101, gfx1102, and gfx1103 targets. Differential Revision: https://reviews.llvm.org/D134465 --- openmp/libomptarget/DeviceRTL/CMakeLists.txt | 2 +- .../plugins/amdgpu/impl/get_elf_mach_gfx_name.cpp | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/openmp/libomptarget/DeviceRTL/CMakeLists.txt b/openmp/libomptarget/DeviceRTL/CMakeLists.txt index c1ef6eb43ded..1a14a6d51a85 100644 --- a/openmp/libomptarget/DeviceRTL/CMakeLists.txt +++ b/openmp/libomptarget/DeviceRTL/CMakeLists.txt @@ -78,7 +78,7 @@ foreach(sm ${nvptx_sm_list}) endif() endforeach() -set(amdgpu_mcpus gfx700 gfx701 gfx801 gfx803 gfx900 gfx902 gfx906 gfx908 gfx90a gfx90c gfx940 gfx1010 gfx1030 gfx1031 gfx1032 gfx1033 gfx1034 gfx1035 gfx1036) +set(amdgpu_mcpus gfx700 gfx701 gfx801 gfx803 gfx900 gfx902 gfx906 gfx908 gfx90a gfx90c gfx940 gfx1010 gfx1030 gfx1031 gfx1032 gfx1033 gfx1034 gfx1035 gfx1036 gfx1100 gfx1101 gfx1102 gfx1103) if (DEFINED LIBOMPTARGET_AMDGCN_GFXLIST) set(amdgpu_mcpus ${LIBOMPTARGET_AMDGCN_GFXLIST}) endif() diff --git a/openmp/libomptarget/plugins/amdgpu/impl/get_elf_mach_gfx_name.cpp b/openmp/libomptarget/plugins/amdgpu/impl/get_elf_mach_gfx_name.cpp index 51ad8108c512..69f2a716a8fd 100644 --- a/openmp/libomptarget/plugins/amdgpu/impl/get_elf_mach_gfx_name.cpp +++ b/openmp/libomptarget/plugins/amdgpu/impl/get_elf_mach_gfx_name.cpp @@ -66,6 +66,14 @@ const char *get_elf_mach_gfx_name(uint32_t EFlags) { return "gfx1035"; case EF_AMDGPU_MACH_AMDGCN_GFX1036: return "gfx1036"; + case EF_AMDGPU_MACH_AMDGCN_GFX1100: + return "gfx1100"; + case EF_AMDGPU_MACH_AMDGCN_GFX1101: + return "gfx1101"; + case EF_AMDGPU_MACH_AMDGCN_GFX1102: + return "gfx1102"; + case EF_AMDGPU_MACH_AMDGCN_GFX1103: + return "gfx1103"; default: return "--unknown gfx"; }