Skip to content

Commit f2a70b9

Browse files
committed
[AMDGPU] Replace gfx940 and gfx941 with gfx942 in offload and libclc
gfx940 and gfx941 are no longer supported. This is one of a series of PRs to remove them from the code base. For SWDEV-512631 and SWDEV-512633
1 parent d50aa30 commit f2a70b9

File tree

5 files changed

+4
-12
lines changed

5 files changed

+4
-12
lines changed

flang/cmake/modules/AddFlangOffloadRuntime.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ macro(enable_omp_offload_compilation files)
9898

9999
set(all_amdgpu_architectures
100100
"gfx700;gfx701;gfx801;gfx803;gfx900;gfx902;gfx906"
101-
"gfx908;gfx90a;gfx90c;gfx940;gfx1010;gfx1030"
101+
"gfx908;gfx90a;gfx90c;gfx942;gfx1010;gfx1030"
102102
"gfx1031;gfx1032;gfx1033;gfx1034;gfx1035;gfx1036"
103103
"gfx1100;gfx1101;gfx1102;gfx1103;gfx1150;gfx1151"
104104
"gfx1152;gfx1153"

libc/docs/gpu/using.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ this shouldn't be necessary.
4444
4545
$> clang openmp.c -fopenmp --offload-arch=gfx90a -Xoffload-linker -lc
4646
$> clang cuda.cu --offload-arch=sm_80 --offload-new-driver -fgpu-rdc -Xoffload-linker -lc
47-
$> clang hip.hip --offload-arch=gfx940 --offload-new-driver -fgpu-rdc -Xoffload-linker -lc
47+
$> clang hip.hip --offload-arch=gfx942 --offload-new-driver -fgpu-rdc -Xoffload-linker -lc
4848
4949
This will automatically link in the needed function definitions if they were
5050
required by the user's application. Normally using the ``-fgpu-rdc`` option

libclc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ set( cayman_aliases aruba )
211211
set( tahiti_aliases pitcairn verde oland hainan bonaire kabini kaveri hawaii
212212
mullins tonga tongapro iceland carrizo fiji stoney polaris10 polaris11
213213
gfx602 gfx705 gfx805
214-
gfx900 gfx902 gfx904 gfx906 gfx908 gfx909 gfx90a gfx90c gfx940 gfx941 gfx942
214+
gfx900 gfx902 gfx904 gfx906 gfx908 gfx909 gfx90a gfx90c gfx942
215215
gfx1010 gfx1011 gfx1012 gfx1013
216216
gfx1030 gfx1031 gfx1032 gfx1033 gfx1034 gfx1035 gfx1036
217217
gfx1100 gfx1101 gfx1102 gfx1103

offload/plugins-nextgen/amdgpu/src/rtl.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2854,12 +2854,6 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
28542854
Error checkIfAPU() {
28552855
// TODO: replace with ROCr API once it becomes available.
28562856
llvm::StringRef StrGfxName(ComputeUnitKind);
2857-
IsAPU = llvm::StringSwitch<bool>(StrGfxName)
2858-
.Case("gfx940", true)
2859-
.Default(false);
2860-
if (IsAPU)
2861-
return Plugin::success();
2862-
28632857
bool MayBeAPU = llvm::StringSwitch<bool>(StrGfxName)
28642858
.Case("gfx942", true)
28652859
.Default(false);

offload/test/lit.cfg

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,10 @@ elif config.libomptarget_current_target.startswith('amdgcn'):
132132
# amdgpu_test_arch contains a list of AMD GPUs in the system
133133
# only check the first one assuming that we will run the test on it.
134134
if not (config.amdgpu_test_arch.startswith("gfx90a") or
135-
config.amdgpu_test_arch.startswith("gfx940") or
136135
config.amdgpu_test_arch.startswith("gfx942")):
137136
supports_unified_shared_memory = False
138137
# check if AMD architecture is an APU:
139-
if (config.amdgpu_test_arch.startswith("gfx940") or
140-
(config.amdgpu_test_arch.startswith("gfx942") and
138+
if ((config.amdgpu_test_arch.startswith("gfx942") and
141139
evaluate_bool_env(config.environment['IS_APU']))):
142140
supports_apu = True
143141
if supports_unified_shared_memory:

0 commit comments

Comments
 (0)