1*5b330a72SMatt Arsenault // REQUIRES: x86-registered-target, amdgpu-registered-target 20701ee69SAlex Voicu 3*5b330a72SMatt Arsenault // RUN: not %clang -### --target=x86_64-unknown-linux-gnu \ 4*5b330a72SMatt Arsenault // RUN: --hipstdpar --hipstdpar-path=/does/not/exist -nogpulib \ 5907f2a09SAlex Voicu // RUN: -nogpuinc --compile %s 2>&1 | \ 69a408588SAlex Voicu // RUN: FileCheck --check-prefix=HIPSTDPAR-MISSING-LIB %s 7*5b330a72SMatt Arsenault // RUN: %clang -### --target=x86_64-unknown-linux-gnu \ 8*5b330a72SMatt Arsenault // RUN: --hipstdpar --hipstdpar-path=%S/Inputs/hipstdpar \ 99a408588SAlex Voicu // RUN: --hipstdpar-thrust-path=%S/Inputs/hipstdpar/thrust \ 109a408588SAlex Voicu // RUN: --hipstdpar-prim-path=%S/Inputs/hipstdpar/rocprim \ 119a408588SAlex Voicu // RUN: -nogpulib -nogpuinc --compile %s 2>&1 | \ 129a408588SAlex Voicu // RUN: FileCheck --check-prefix=HIPSTDPAR-COMPILE %s 139a408588SAlex Voicu // RUN: touch %t.o 14*5b330a72SMatt Arsenault // RUN: %clang -### --target=x86_64-unknown-linux-gnu --hipstdpar %t.o 2>&1 | FileCheck --check-prefix=HIPSTDPAR-LINK %s 159a408588SAlex Voicu 169a408588SAlex Voicu // HIPSTDPAR-MISSING-LIB: error: cannot find HIP Standard Parallelism Acceleration library; provide it via '--hipstdpar-path' 179a408588SAlex Voicu // HIPSTDPAR-COMPILE: "-x" "hip" 189a408588SAlex Voicu // HIPSTDPAR-COMPILE: "-idirafter" "{{.*/thrust}}" 199a408588SAlex Voicu // HIPSTDPAR-COMPILE: "-idirafter" "{{.*/rocprim}}" 209a408588SAlex Voicu // HIPSTDPAR-COMPILE: "-idirafter" "{{.*/Inputs/hipstdpar}}" 219a408588SAlex Voicu // HIPSTDPAR-COMPILE: "-include" "hipstdpar_lib.hpp" 229a408588SAlex Voicu // HIPSTDPAR-LINK: "-rpath" 239a408588SAlex Voicu // HIPSTDPAR-LINK: "-l{{.*hip.*}}" 24