[PATCH] D141078: [CUDA][HIP] Support '--offload-arch=native' for the new driver
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 5 10:58:01 PST 2023
jhuber6 added inline comments.
================
Comment at: clang/test/Driver/amdgpu-hip-system-arch.c:17
// RUN: | FileCheck %s --check-prefix=NO-OUTPUT-ERROR
+// RUN: %clang -### --target=x86_64-unknown-linux-gnu -nogpulib --offload-arch=native --offload-new-driver --amdgpu-arch-tool=%t/amdgpu_arch_fail -x hip %s 2>&1 \
+// RUN: | FileCheck %s --check-prefix=NO-OUTPUT-ERROR
----------------
tra wrote:
> Nit: I'd reformat it a bit to make it painfully obvious that it's the combination of `--offload-arch=native` and `--amdgpu-arch-tool=%t/amdgpu_arch_fail` that makes the test hermetic.
> Put them on a RUN line of their own?
Will do.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141078/new/
https://reviews.llvm.org/D141078
More information about the cfe-commits
mailing list