Skip to content

Commit 2d493db

Browse files
saiislamronlieb
authored andcommitted
[OpenMP] Support gfx1152 in libm
Support of gfx1152 was missing from libm and libc. Change-Id: I8676befdfc4f9812bd5eacbead6694f1dffb9a4c
1 parent 2f16d2f commit 2d493db

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libc/src/math/gpu/vendor/amdgpu/platform.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ extern const LIBC_INLINE_VAR uint32_t __oclc_ISA_version = 11003;
110110
extern const LIBC_INLINE_VAR uint32_t __oclc_ISA_version = 11500;
111111
#elif defined(__gfx1151__)
112112
extern const LIBC_INLINE_VAR uint32_t __oclc_ISA_version = 11501;
113+
#elif defined(__gfx1152__)
114+
extern const LIBC_INLINE_VAR uint32_t __oclc_ISA_version = 11502;
113115
#else
114116
#error "Unknown AMDGPU architecture"
115117
#endif

openmp/libomptarget/libm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ endif()
2828
set(optimization_level 2)
2929

3030
# Get list of AMD GPUs to build for
31-
set(amdgpu_mcpus gfx700 gfx701 gfx801 gfx803 gfx900 gfx902 gfx906 gfx908 gfx90a gfx90c gfx940 gfx941 gfx942 gfx1010 gfx1030 gfx1031 gfx1032 gfx1033 gfx1034 gfx1035 gfx1036 gfx1100 gfx1101 gfx1102 gfx1103 gfx1150 gfx1151 gfx1200 gfx1201)
31+
set(amdgpu_mcpus gfx700 gfx701 gfx801 gfx803 gfx900 gfx902 gfx906 gfx908 gfx90a gfx90c gfx940 gfx941 gfx942 gfx1010 gfx1030 gfx1031 gfx1032 gfx1033 gfx1034 gfx1035 gfx1036 gfx1100 gfx1101 gfx1102 gfx1103 gfx1150 gfx1151 gfx1152 gfx1200 gfx1201)
3232
if (DEFINED LIBOMPTARGET_AMDGCN_GFXLIST)
3333
set(amdgpu_mcpus ${LIBOMPTARGET_AMDGCN_GFXLIST})
3434
endif()

0 commit comments

Comments
 (0)