Skip to content

Commit 8a5a2c7

Browse files
committed
Fix test for machines without HIPSTDPAR installed.
1 parent 87b22b2 commit 8a5a2c7

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

clang/test/CodeGenHipStdPar/rdc-does-not-enable-hipstdpar.cpp

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22
// passed to CC1, to avoid eager, per TU, removal of potentially accessible
33
// functions.
44

5-
// RUN: %clang -### --hipstdpar --offload-arch=gfx906 %s -nogpulib -nogpuinc \
6-
// RUN: 2>&1 | FileCheck -check-prefix=NORDC %s
5+
// RUN: %clang -### --hipstdpar --offload-arch=gfx906 -nogpulib -nogpuinc %s \
6+
// RUN: --hipstdpar-path=%S/../Driver/Inputs/hipstdpar \
7+
// RUN: --hipstdpar-thrust-path=%S/../Driver/Inputs/hipstdpar/thrust \
8+
// RUN: --hipstdpar-prim-path=%S/../Driver/Inputs/hipstdpar/rocprim 2>&1 \
9+
// RUN: | FileCheck %s -check-prefix=NORDC
710
// NORDC: {{.*}}"-mllvm" "-amdgpu-enable-hipstdpar"
811

9-
// RUN: %clang -### --hipstdpar --offload-arch=gfx906 %s -nogpulib -nogpuinc -fgpu-rdc \
10-
// RUN: 2>&1 | FileCheck -check-prefix=RDC %s
12+
// RUN: %clang -### --hipstdpar --offload-arch=gfx906 -nogpulib -nogpuinc %s \
13+
// RUN: -fgpu-rdc --hipstdpar-path=%S/../Driver/Inputs/hipstdpar \
14+
// RUN: --hipstdpar-thrust-path=%S/../Driver/Inputs/hipstdpar/thrust \
15+
// RUN: --hipstdpar-prim-path=%S/../Driver/Inputs/hipstdpar/rocprim 2>&1 \
16+
// RUN: | FileCheck %s -check-prefix=RDC
1117
// RDC-NOT: {{.*}}"-mllvm" "-amdgpu-enable-hipstdpar"

0 commit comments

Comments
 (0)