|
1 |
| -/// Check if -fsycl-instrument-device-code is passed to device-side -cc1 |
2 |
| -/// and if ITT device libraries are pulled in. |
3 |
| -/// The following conditions must be fulfilled: |
4 |
| -/// 1. A SPIR-V-based environment must be targetted |
5 |
| -/// 2. The option must not be explicitly disabled in the Driver call |
| 1 | +// Check if -fsycl-instrument-device-code is passed to device-side -cc1 |
| 2 | +// and if ITT device libraries are pulled in. |
| 3 | +// The following conditions must be fulfilled: |
| 4 | +// 1. A SPIR-V-based environment must be targetted |
| 5 | +// 2. The option must not be explicitly disabled in the Driver call |
| 6 | + |
| 7 | +// FIXME: Force linux targets to allow for the libraries to be found. Dummy |
| 8 | +// inputs for --sysroot should be updated to work better for Windows. |
6 | 9 |
|
7 |
| -/// FIXME: Force linux targets to allow for the libraries to be found. Dummy |
8 |
| -/// inputs for --sysroot should be updated to work better for Windows. |
9 | 10 | // RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl --sysroot=%S/Inputs/SYCL -fsycl-targets=spir64 -### %s 2>&1 \
|
10 | 11 | // RUN: | FileCheck -check-prefixes=CHECK-SPIRV,CHECK-HOST %s
|
11 |
| -/// -fno-sycl-device-lib mustn't affect the linkage of ITT libraries |
| 12 | +// -fno-sycl-device-lib mustn't affect the linkage of ITT libraries |
12 | 13 | // RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl --sysroot=%S/Inputs/SYCL -fno-sycl-device-lib=all -fsycl-targets=spir64 -### %s 2>&1 \
|
13 | 14 | // RUN: | FileCheck -check-prefixes=CHECK-SPIRV %s
|
14 | 15 |
|
|
23 | 24 | // RUN: | FileCheck -check-prefixes=CHECK-NONPASSED %s
|
24 | 25 | // RUN: %clangxx -fsycl -fsycl-targets=nvptx64-nvidia-cuda -fno-sycl-instrument-device-code -nocudalib -### %s 2>&1 \
|
25 | 26 | // RUN: | FileCheck -check-prefixes=CHECK-NONPASSED %s
|
| 27 | + |
26 | 28 | // CHECK-NONPASSED-NOT: "-fsycl-instrument-device-code"
|
27 | 29 | // CHECK-NONPASSED-NOT: "-input={{.*}}libsycl-itt-{{.*}}.{{o|obj}}"
|
0 commit comments