aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenHipStdPar/rdc-does-not-enable-hipstdpar.cpp
blob: f7438c374dd3298c790cec9403d2755d177f052b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Check that if we are compiling with fgpu-rdc amdgpu-enable-hipstdpar is not
// passed to CC1, to avoid eager, per TU, removal of potentially accessible
// functions.

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

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