|
1 | 1 | // REQUIRES: system-linux
|
2 |
| - |
3 | 2 | /// Verify --offload-new-driver option phases
|
4 | 3 | // RUN: %clang --target=x86_64-unknown-linux-gnu -fsycl -fsycl-targets=nvptx64-nvidia-cuda,spir64 --offload-new-driver -ccc-print-phases %s 2>&1 \
|
5 | 4 | // RUN: | FileCheck -check-prefix=OFFLOAD-NEW-DRIVER %s
|
|
10 | 9 | // OFFLOAD-NEW-DRIVER: 4: input, "[[INPUT]]", c++, (device-sycl)
|
11 | 10 | // OFFLOAD-NEW-DRIVER: 5: preprocessor, {4}, c++-cpp-output, (device-sycl)
|
12 | 11 | // OFFLOAD-NEW-DRIVER: 6: compiler, {5}, ir, (device-sycl)
|
13 |
| -// OFFLOAD-NEW-DRIVER: 7: backend, {6}, assembler, (device-sycl) |
14 |
| -// OFFLOAD-NEW-DRIVER: 8: assembler, {7}, object, (device-sycl) |
15 |
| -// OFFLOAD-NEW-DRIVER: 9: offload, "device-sycl (nvptx64-nvidia-cuda)" {8}, object |
16 |
| -// OFFLOAD-NEW-DRIVER: 10: input, "[[INPUT]]", c++, (device-sycl) |
17 |
| -// OFFLOAD-NEW-DRIVER: 11: preprocessor, {10}, c++-cpp-output, (device-sycl) |
18 |
| -// OFFLOAD-NEW-DRIVER: 12: compiler, {11}, ir, (device-sycl) |
19 |
| -// OFFLOAD-NEW-DRIVER: 13: backend, {12}, assembler, (device-sycl) |
20 |
| -// OFFLOAD-NEW-DRIVER: 14: assembler, {13}, object, (device-sycl) |
21 |
| -// OFFLOAD-NEW-DRIVER: 15: offload, "device-sycl (spir64-unknown-unknown)" {14}, object |
22 |
| -// OFFLOAD-NEW-DRIVER: 16: clang-offload-packager, {9, 15}, image, (device-sycl) |
23 |
| -// OFFLOAD-NEW-DRIVER: 17: offload, "host-sycl (x86_64-unknown-linux-gnu)" {3}, "device-sycl (x86_64-unknown-linux-gnu)" {16}, ir |
24 |
| -// OFFLOAD-NEW-DRIVER: 18: backend, {17}, assembler, (host-sycl) |
25 |
| -// OFFLOAD-NEW-DRIVER: 19: assembler, {18}, object, (host-sycl) |
26 |
| -// OFFLOAD-NEW-DRIVER: 20: clang-linker-wrapper, {19}, image, (host-sycl) |
| 12 | +// OFFLOAD-NEW-DRIVER: 7: offload, "device-sycl (nvptx64-nvidia-cuda)" {6}, ir |
| 13 | +// OFFLOAD-NEW-DRIVER: 8: input, "[[INPUT]]", c++, (device-sycl) |
| 14 | +// OFFLOAD-NEW-DRIVER: 9: preprocessor, {8}, c++-cpp-output, (device-sycl) |
| 15 | +// OFFLOAD-NEW-DRIVER: 10: compiler, {9}, ir, (device-sycl) |
| 16 | +// OFFLOAD-NEW-DRIVER: 11: offload, "device-sycl (spir64-unknown-unknown)" {10}, ir |
| 17 | +// OFFLOAD-NEW-DRIVER: 12: clang-offload-packager, {7, 11}, image, (device-sycl) |
| 18 | +// OFFLOAD-NEW-DRIVER: 13: offload, "host-sycl (x86_64-unknown-linux-gnu)" {3}, "device-sycl (x86_64-unknown-linux-gnu)" {12}, ir |
| 19 | +// OFFLOAD-NEW-DRIVER: 14: backend, {13}, assembler, (host-sycl) |
| 20 | +// OFFLOAD-NEW-DRIVER: 15: assembler, {14}, object, (host-sycl) |
| 21 | +// OFFLOAD-NEW-DRIVER: 16: clang-linker-wrapper, {15}, image, (host-sycl) |
27 | 22 |
|
28 | 23 | /// Check the toolflow for SYCL compilation using new offload model
|
29 | 24 | // RUN: %clangxx -### --target=x86_64-unknown-linux-gnu -fsycl -fsycl-targets=spir64 --offload-new-driver %s 2>&1 | FileCheck -check-prefix=CHK-FLOW %s
|
|
38 | 33 | // RUN: --sysroot=%S/Inputs/SYCL -### %s 2>&1 \
|
39 | 34 | // RUN: | FileCheck -check-prefix WRAPPER_OPTIONS %s
|
40 | 35 | // WRAPPER_OPTIONS: clang-linker-wrapper{{.*}} "--triple=spir64"
|
41 |
| -// WRAPPER_OPTIONS-SAME: "-sycl-device-libraries=libsycl-crt.bc,libsycl-complex.bc,libsycl-complex-fp64.bc,libsycl-cmath.bc,libsycl-cmath-fp64.bc,libsycl-imf.bc,libsycl-imf-fp64.bc,libsycl-imf-bf16.bc,libsycl-itt-user-wrappers.bc,libsycl-itt-compiler-wrappers.bc,libsycl-itt-stubs.bc" |
| 36 | +// WRAPPER_OPTIONS-SAME: "-sycl-device-libraries=libsycl-crt.new.o,libsycl-complex.new.o,libsycl-complex-fp64.new.o,libsycl-cmath.new.o,libsycl-cmath-fp64.new.o,libsycl-imf.new.o,libsycl-imf-fp64.new.o,libsycl-imf-bf16.new.o,libsycl-itt-user-wrappers.new.o,libsycl-itt-compiler-wrappers.new.o,libsycl-itt-stubs.new.o" |
42 | 37 | // WRAPPER_OPTIONS-SAME: "-sycl-device-library-location={{.*}}/lib"
|
43 | 38 |
|
44 | 39 | // RUN: %clangxx --target=x86_64-unknown-linux-gnu -fsycl --offload-new-driver \
|
|
0 commit comments