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