Skip to content

Commit

Permalink
clang: Fix hipstdpar test relying on default target (#111975)
Browse files Browse the repository at this point in the history
Use explicit target and stop restricting hosts it can run on.
  • Loading branch information
arsenm authored Oct 15, 2024
1 parent a54d88f commit 5b330a7
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions clang/test/Driver/hipstdpar.c
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
// REQUIRES: x86-registered-target
// REQUIRES: amdgpu-registered-target
// REQUIRES: system-linux
// UNSUPPORTED: target={{.*}}-zos{{.*}}
// XFAIL: target={{.*}}hexagon{{.*}}
// XFAIL: target={{.*}}-scei{{.*}}
// XFAIL: target={{.*}}-sie{{.*}}
// REQUIRES: x86-registered-target, amdgpu-registered-target

// RUN: not %clang -### --hipstdpar --hipstdpar-path=/does/not/exist -nogpulib \
// RUN: not %clang -### --target=x86_64-unknown-linux-gnu \
// RUN: --hipstdpar --hipstdpar-path=/does/not/exist -nogpulib \
// RUN: -nogpuinc --compile %s 2>&1 | \
// RUN: FileCheck --check-prefix=HIPSTDPAR-MISSING-LIB %s
// RUN: %clang -### --hipstdpar --hipstdpar-path=%S/Inputs/hipstdpar \
// RUN: %clang -### --target=x86_64-unknown-linux-gnu \
// RUN: --hipstdpar --hipstdpar-path=%S/Inputs/hipstdpar \
// RUN: --hipstdpar-thrust-path=%S/Inputs/hipstdpar/thrust \
// RUN: --hipstdpar-prim-path=%S/Inputs/hipstdpar/rocprim \
// RUN: -nogpulib -nogpuinc --compile %s 2>&1 | \
// RUN: FileCheck --check-prefix=HIPSTDPAR-COMPILE %s
// RUN: touch %t.o
// RUN: %clang -### --hipstdpar %t.o 2>&1 | FileCheck --check-prefix=HIPSTDPAR-LINK %s
// RUN: %clang -### --target=x86_64-unknown-linux-gnu --hipstdpar %t.o 2>&1 | FileCheck --check-prefix=HIPSTDPAR-LINK %s

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

0 comments on commit 5b330a7

Please sign in to comment.