[PATCH] D142246: [HIP] Change default offload arch to gfx906
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 20 12:00:53 PST 2023
yaxunl created this revision.
yaxunl added a reviewer: tra.
Herald added a project: All.
yaxunl requested review of this revision.
Herald added a subscriber: MaskRay.
Change default offload arch to gfx906 since
it is the lowest officially supported offload
arch (https://docs.amd.com/bundle/ROCm-Release-Notes-v5.4/page/About_This_Document.html#d2e131).
https://reviews.llvm.org/D142246
Files:
clang/lib/Driver/Driver.cpp
clang/test/Driver/hip-default-gpu-arch.hip
Index: clang/test/Driver/hip-default-gpu-arch.hip
===================================================================
--- clang/test/Driver/hip-default-gpu-arch.hip
+++ clang/test/Driver/hip-default-gpu-arch.hip
@@ -3,4 +3,4 @@
// RUN: %clang -### -c %s 2>&1 | FileCheck %s
-// CHECK: {{.*}}clang{{.*}}"-target-cpu" "gfx803"
+// CHECK: {{.*}}clang{{.*}}"-target-cpu" "gfx906"
Index: clang/lib/Driver/Driver.cpp
===================================================================
--- clang/lib/Driver/Driver.cpp
+++ clang/lib/Driver/Driver.cpp
@@ -3303,7 +3303,7 @@
HIPActionBuilder(Compilation &C, DerivedArgList &Args,
const Driver::InputList &Inputs)
: CudaActionBuilderBase(C, Args, Inputs, Action::OFK_HIP) {
- DefaultCudaArch = CudaArch::GFX803;
+ DefaultCudaArch = CudaArch::GFX906;
if (Args.hasArg(options::OPT_gpu_bundle_output,
options::OPT_no_gpu_bundle_output))
BundleOutput = Args.hasFlag(options::OPT_gpu_bundle_output,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142246.490935.patch
Type: text/x-patch
Size: 1023 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230120/57def4f0/attachment.bin>
More information about the cfe-commits
mailing list