[PATCH] D87324: [HIP] Add gfx1030 and gfx1031
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 8 13:39:08 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG041da0d828e3: [HIP] Add gfx1031 and gfx1030 (authored by yaxunl).
Herald added a project: clang.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87324/new/
https://reviews.llvm.org/D87324
Files:
clang/lib/Basic/Cuda.cpp
clang/test/Driver/hip-offload-arch.hip
Index: clang/test/Driver/hip-offload-arch.hip
===================================================================
--- /dev/null
+++ clang/test/Driver/hip-offload-arch.hip
@@ -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"}}
Index: clang/lib/Basic/Cuda.cpp
===================================================================
--- clang/lib/Basic/Cuda.cpp
+++ clang/lib/Basic/Cuda.cpp
@@ -84,7 +84,7 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87324.290574.patch
Type: text/x-patch
Size: 998 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200908/39dd7c6e/attachment.bin>
More information about the cfe-commits
mailing list