Skip to content

Commit f26e346

Browse files
authored
[offload] - Add mainline build support for gfx950 (llvm#894)
2 parents eaff6bc + f2e7774 commit f26e346

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

offload/DeviceRTL/include/Platform.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ extern const inline unsigned __oclc_ISA_version = 9400;
8181
extern const inline unsigned __oclc_ISA_version = 9401;
8282
#elif defined(__gfx942__)
8383
extern const inline unsigned __oclc_ISA_version = 9402;
84+
#elif defined(__gfx950__)
85+
extern const inline unsigned __oclc_ISA_version = 9500;
8486
#elif defined(__gfx1010__)
8587
extern const inline unsigned __oclc_ISA_version = 10100;
8688
#elif defined(__gfx1011__)

offload/hostexec/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ else()
9797
return()
9898
endif()
9999

100-
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 gfx1153 gfx1200 gfx1201)
100+
set(amdgpu_mcpus gfx700 gfx701 gfx801 gfx803 gfx900 gfx902 gfx906 gfx908 gfx90a gfx90c gfx940 gfx941 gfx942 gfx950 gfx1010 gfx1030 gfx1031 gfx1032 gfx1033 gfx1034 gfx1035 gfx1036 gfx1100 gfx1101 gfx1102 gfx1103 gfx1150 gfx1151 gfx1152 gfx1153 gfx1200 gfx1201)
101101
if (DEFINED LIBOMPTARGET_AMDGCN_GFXLIST)
102102
set(amdgpu_mcpus ${LIBOMPTARGET_AMDGCN_GFXLIST})
103103
endif()

offload/test/lit.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ elif config.libomptarget_current_target.startswith('amdgcn'):
131131
# only check the first one assuming that we will run the test on it.
132132
if not (config.amdgpu_test_arch.startswith("gfx90a") or
133133
config.amdgpu_test_arch.startswith("gfx940") or
134-
config.amdgpu_test_arch.startswith("gfx942")):
134+
config.amdgpu_test_arch.startswith("gfx942") or
135+
config.amdgpu_test_arch.startswith("gfx950")):
135136
supports_unified_shared_memory = False
136137
# check if AMD architecture is an APU:
137138
if (config.amdgpu_test_arch.startswith("gfx940") or

0 commit comments

Comments
 (0)