brintos

brintos / llvm-project-archived public Read only

0
0
Text · 959 B · f7438c3 Raw
18 lines · cpp
1// Check that if we are compiling with fgpu-rdc amdgpu-enable-hipstdpar is not2// passed to CC1, to avoid eager, per TU, removal of potentially accessible3// functions.4 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=NORDC10// NORDC: {{.*}}"-mllvm" "-amdgpu-enable-hipstdpar"11 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=RDC17// RDC-NOT: {{.*}}"-mllvm" "-amdgpu-enable-hipstdpar"18