Skip to content

Commit 5b330a7

Browse files
authored
clang: Fix hipstdpar test relying on default target (#111975)
Use explicit target and stop restricting hosts it can run on.
1 parent a54d88f commit 5b330a7

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

clang/test/Driver/hipstdpar.c

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: amdgpu-registered-target
3-
// REQUIRES: system-linux
4-
// UNSUPPORTED: target={{.*}}-zos{{.*}}
5-
// XFAIL: target={{.*}}hexagon{{.*}}
6-
// XFAIL: target={{.*}}-scei{{.*}}
7-
// XFAIL: target={{.*}}-sie{{.*}}
1+
// REQUIRES: x86-registered-target, amdgpu-registered-target
82

9-
// RUN: not %clang -### --hipstdpar --hipstdpar-path=/does/not/exist -nogpulib \
3+
// RUN: not %clang -### --target=x86_64-unknown-linux-gnu \
4+
// RUN: --hipstdpar --hipstdpar-path=/does/not/exist -nogpulib \
105
// RUN: -nogpuinc --compile %s 2>&1 | \
116
// RUN: FileCheck --check-prefix=HIPSTDPAR-MISSING-LIB %s
12-
// RUN: %clang -### --hipstdpar --hipstdpar-path=%S/Inputs/hipstdpar \
7+
// RUN: %clang -### --target=x86_64-unknown-linux-gnu \
8+
// RUN: --hipstdpar --hipstdpar-path=%S/Inputs/hipstdpar \
139
// RUN: --hipstdpar-thrust-path=%S/Inputs/hipstdpar/thrust \
1410
// RUN: --hipstdpar-prim-path=%S/Inputs/hipstdpar/rocprim \
1511
// RUN: -nogpulib -nogpuinc --compile %s 2>&1 | \
1612
// RUN: FileCheck --check-prefix=HIPSTDPAR-COMPILE %s
1713
// RUN: touch %t.o
18-
// RUN: %clang -### --hipstdpar %t.o 2>&1 | FileCheck --check-prefix=HIPSTDPAR-LINK %s
14+
// RUN: %clang -### --target=x86_64-unknown-linux-gnu --hipstdpar %t.o 2>&1 | FileCheck --check-prefix=HIPSTDPAR-LINK %s
1915

2016
// HIPSTDPAR-MISSING-LIB: error: cannot find HIP Standard Parallelism Acceleration library; provide it via '--hipstdpar-path'
2117
// HIPSTDPAR-COMPILE: "-x" "hip"

0 commit comments

Comments
 (0)