[clang] [flang] [Flang][AMDGPU] Add rocm-path flag (PR #88190)
Dominik Adamski via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 9 14:08:35 PDT 2024
================
@@ -201,3 +201,24 @@
! RUN: -nogpulibc %s 2>&1 \
! RUN: | FileCheck --check-prefix=NO-LIBC-GPU-AMDGPU %s
! NO-LIBC-GPU-AMDGPU-NOT: "-lcgpu-amdgpu"
+
+! RUN: rm -rf %t/Inputs
+
+! RUN: not %flang -### -v --target=x86_64-unknown-linux-gnu -fopenmp \
+! RUN: --offload-arch=gfx900 \
+! RUN: --rocm-path=%t/Inputs/rocm %s 2>&1 \
----------------
DominikAdamski wrote:
This test checks if flang reports an error if ROCm path doesn't exist. The next test checks positive scenario.
https://github.com/llvm/llvm-project/pull/88190
More information about the cfe-commits
mailing list