|
6 | 6 |
|
7 | 7 | // Check if internal libraries are still linked against when linkage of all
|
8 | 8 | // device libs is manually excluded.
|
9 |
| -// RUN: %clangxx -ccc-print-phases -std=c++11 -fsycl -fno-sycl-device-lib=all \ |
| 9 | +// RUN: %clangxx -ccc-print-phases -std=c++11 -fsycl -fno-sycl-device-lib=all --sysroot=%S/Inputs/SYCL \ |
10 | 10 | // RUN: -fsycl-targets=nvptx64-nvidia-cuda %s 2>&1 \
|
11 | 11 | // RUN: | FileCheck -check-prefix=CHK-NO-DEVLIB %s
|
12 | 12 |
|
|
20 | 20 | // CHK-NO-DEVLIB: {{[0-9]+}}: linker, {{{.*}}[[LIB1]], [[LIB2]], [[LIB3]]{{.*}}}, ir, (device-sycl, sm_50)
|
21 | 21 |
|
22 | 22 | // Check that the -fsycl-device-lib flag has no effect when "all" is specified.
|
23 |
| -// RUN: %clangxx -ccc-print-phases -std=c++11 -fsycl -fsycl-device-lib=all \ |
| 23 | +// RUN: %clangxx -ccc-print-phases -std=c++11 -fsycl -fsycl-device-lib=all --sysroot=%S/Inputs/SYCL \ |
24 | 24 | // RUN: -fsycl-targets=nvptx64-nvidia-cuda %s 2>&1 \
|
25 | 25 | // RUN: | FileCheck -check-prefix=CHK-ALL %s
|
26 | 26 |
|
27 | 27 | // Check that the -fsycl-device-lib flag has no effect when subsets of libs
|
28 | 28 | // are specified.
|
29 |
| -// RUN: %clangxx -ccc-print-phases -std=c++11 \ |
| 29 | +// RUN: %clangxx -ccc-print-phases -std=c++11 --sysroot=%S/Inputs/SYCL \ |
30 | 30 | // RUN: -fsycl -fsycl-device-lib=libc,libm-fp32,libm-fp64,libimf-fp32,libimf-fp64,libimf-bf16,libm-bfloat16 \
|
31 | 31 | // RUN: -fsycl-targets=nvptx64-nvidia-cuda %s 2>&1 \
|
32 | 32 | // RUN: | FileCheck -check-prefix=CHK-ALL %s
|
33 | 33 |
|
34 | 34 | // Check that -fno-sycl-device-lib is ignored when it does not contain "all".
|
35 | 35 | // A warning should be printed that the flag got ignored.
|
36 |
| -// RUN: %clangxx -ccc-print-phases -std=c++11 -fsycl \ |
| 36 | +// RUN: %clangxx -ccc-print-phases -std=c++11 -fsycl --sysroot=%S/Inputs/SYCL \ |
37 | 37 | // RUN: -fno-sycl-device-lib=libc,libm-fp32,libm-fp64,libimf-fp32,libimf-fp64,libimf-bf16,libm-bfloat16 \
|
38 | 38 | // RUN: -fsycl-targets=nvptx64-nvidia-cuda %s 2>&1 \
|
39 | 39 | // RUN: | FileCheck -check-prefixes=CHK-UNUSED-WARN,CHK-ALL %s
|
|
0 commit comments