1 // REQUIRES: x86-registered-target, amdgpu-registered-target 2 3 // RUN: not %clang -### --target=x86_64-unknown-linux-gnu \ 4 // RUN: --hipstdpar --hipstdpar-path=/does/not/exist -nogpulib \ 5 // RUN: -nogpuinc --compile %s 2>&1 | \ 6 // RUN: FileCheck --check-prefix=HIPSTDPAR-MISSING-LIB %s 7 // RUN: %clang -### --target=x86_64-unknown-linux-gnu \ 8 // RUN: --hipstdpar --hipstdpar-path=%S/Inputs/hipstdpar \ 9 // RUN: --hipstdpar-thrust-path=%S/Inputs/hipstdpar/thrust \ 10 // RUN: --hipstdpar-prim-path=%S/Inputs/hipstdpar/rocprim \ 11 // RUN: -nogpulib -nogpuinc --compile %s 2>&1 | \ 12 // RUN: FileCheck --check-prefix=HIPSTDPAR-COMPILE %s 13 // RUN: touch %t.o 14 // RUN: %clang -### --target=x86_64-unknown-linux-gnu --hipstdpar %t.o 2>&1 | FileCheck --check-prefix=HIPSTDPAR-LINK %s 15 16 // HIPSTDPAR-MISSING-LIB: error: cannot find HIP Standard Parallelism Acceleration library; provide it via '--hipstdpar-path' 17 // HIPSTDPAR-COMPILE: "-x" "hip" 18 // HIPSTDPAR-COMPILE: "-idirafter" "{{.*/thrust}}" 19 // HIPSTDPAR-COMPILE: "-idirafter" "{{.*/rocprim}}" 20 // HIPSTDPAR-COMPILE: "-idirafter" "{{.*/Inputs/hipstdpar}}" 21 // HIPSTDPAR-COMPILE: "-include" "hipstdpar_lib.hpp" 22 // HIPSTDPAR-LINK: "-rpath" 23 // HIPSTDPAR-LINK: "-l{{.*hip.*}}" 24