[clang] [flang] [Flang][AMDGPU] Add rocm-path flag (PR #88190)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 9 13:48:30 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 \
----------------
jhuber6 wrote:

I'm assuming you mean `%S` as well.

https://github.com/llvm/llvm-project/pull/88190


More information about the cfe-commits mailing list