|
20 | 20 | // CHECK-SPIRV-SAME: "{{.*}}libsycl-itt-stubs.bc"
|
21 | 21 | // CHECK-HOST-NOT: "-cc1"{{.*}} "-fsycl-is-host"{{.*}} "-fsycl-instrument-device-code"
|
22 | 22 |
|
23 |
| -// ITT annotations in device code are disabled by default. However, for SYCL offloading, |
24 |
| -// we still link ITT annotations libraries to ensure ABI compatibility with previous release. |
25 |
| -// RUN: %clangxx -fsycl --no-offload-new-driver -fsycl-targets=spir64 -### %s 2>&1 \ |
| 23 | +// ITT annotations in device code are disabled by default. However, for SYCL |
| 24 | +// offloading, we still link ITT annotations libraries to ensure ABI |
| 25 | +// compatibility with previous release. |
| 26 | +// RUN: %clangxx -fsycl --no-offload-new-driver -fsycl-targets=spir64 -### \ |
| 27 | +// RUN: --sysroot=%S/Inputs/SYCL %s 2>&1 \ |
26 | 28 | // RUN: | FileCheck -check-prefixes=CHECK-ITT-LINK-ONLY %s
|
27 |
| -// RUN: %clangxx -fsycl --no-offload-new-driver -fsycl-targets=nvptx64-nvidia-cuda -nocudalib -### %s 2>&1 \ |
28 |
| -// RUN: | FileCheck -check-prefixes=CHECK-NONPASSED %s |
29 | 29 |
|
30 | 30 | // CHECK-ITT-LINK-ONLY-NOT: "-fsycl-instrument-device-code"
|
31 | 31 | // CHECK-ITT-LINK-ONLY: llvm-link{{.*}} {{.*}}libsycl-itt-{{.*}}
|
32 | 32 |
|
33 |
| -// RUN: %clangxx -fsycl --no-offload-new-driver -fno-sycl-instrument-device-code -fsycl-targets=spir64 -### %s 2>&1 \ |
| 33 | +// Verify that ITT annotations are not pulled in for non-SPIR-V targets as |
| 34 | +// well as when device code instrumentation is explicitly turned off. |
| 35 | +// RUN: %clangxx -fsycl --no-offload-new-driver --sysroot=%S/Inputs/SYCL \ |
| 36 | +// RUN: -fsycl-targets=nvptx64-nvidia-cuda -nocudalib -### %s 2>&1 \ |
| 37 | +// RUN: | FileCheck -check-prefixes=CHECK-NONPASSED %s |
| 38 | +// RUN: %clangxx -fsycl --no-offload-new-driver --sysroot=%S/Inputs/SYCL \ |
| 39 | +// RUN: -fno-sycl-instrument-device-code -fsycl-targets=spir64 -### %s 2>&1 \ |
34 | 40 | // RUN: | FileCheck -check-prefixes=CHECK-NONPASSED %s
|
35 |
| -// RUN: %clangxx -fsycl --no-offload-new-driver -fsycl-targets=nvptx64-nvidia-cuda -fno-sycl-instrument-device-code -nocudalib -### %s 2>&1 \ |
| 41 | +// RUN: %clangxx -fsycl --no-offload-new-driver --sysroot=%s/Inputs/SYCL \ |
| 42 | +// RUN: -fsycl-targets=nvptx64-nvidia-cuda -fno-sycl-instrument-device-code \ |
| 43 | +// RUN: -nocudalib -### %s 2>&1 \ |
36 | 44 | // RUN: | FileCheck -check-prefixes=CHECK-NONPASSED %s
|
37 | 45 |
|
38 | 46 | // CHECK-NONPASSED-NOT: "-fsycl-instrument-device-code"
|
|
0 commit comments