[HIP] Add gfx1031 and gfx1030

Differential Revision: https://reviews.llvm.org/D87324
This commit is contained in:
Yaxun (Sam) Liu 2020-09-08 16:01:30 -04:00
parent f4ac79a364
commit 041da0d828
2 changed files with 11 additions and 1 deletions

View File

@ -84,7 +84,7 @@ CudaArchToStringMap arch_names[] = {
GFX(810), // stoney
GFX(900), // vega, instinct
GFX(902), GFX(904), GFX(906), GFX(908), GFX(909),
GFX(1010), GFX(1011), GFX(1012),
GFX(1010), GFX(1011), GFX(1012), GFX(1030), GFX(1031)
// clang-format on
};
#undef SM

View File

@ -0,0 +1,10 @@
// REQUIRES: clang-driver, x86-registered-target, amdgpu-registered-target
// RUN: %clang -### -target x86_64-linux-gnu \
// RUN: --offload-arch=gfx1030 \
// RUN: --offload-arch=gfx1031 \
// RUN: -nogpuinc -nogpulib \
// RUN: %s 2>&1 | FileCheck %s
// CHECK: {{"[^"]*clang[^"]*".* "-target-cpu" "gfx1030"}}
// CHECK: {{"[^"]*clang[^"]*".* "-target-cpu" "gfx1031"}}