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

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 9 17:31:20 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:

Even in that case I don't think `%t` is right, should probably just point it to some non-existant path off the current directory `%S`.

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


More information about the cfe-commits mailing list