| 1 |
// Check that if we are compiling with fgpu-rdc amdgpu-enable-hipstdpar is not |
| 2 |
// passed to CC1, to avoid eager, per TU, removal of potentially accessible |
| 3 |
// 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=NORDC |
| 10 |
// 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=RDC |
| 17 |
// RDC-NOT: {{.*}}"-mllvm" "-amdgpu-enable-hipstdpar" |