|
10 | 10 | // Test with `--offload-new-driver` |
11 | 11 | // RUN: %{build} --offload-new-driver -c -o %t.kernel.o -DINIT_KERNEL -DCALC_KERNEL |
12 | 12 | // RUN: %{build} --offload-new-driver -c -o %t.main.o -DMAIN_APP |
13 | | -// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl -fsycl-targets=%{sycl_triple} --offload-new-driver %t.kernel.o %t.main.o -o %t.fat |
14 | | -// RUN: %{run} %t.fat |
| 13 | +// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl -fsycl-targets=%{sycl_triple} --offload-new-driver %t.kernel.o %t.main.o -o %t1.fat |
| 14 | +// RUN: %{run} %t1.fat |
15 | 15 |
|
16 | 16 | // Multiple sources with kernel code |
17 | 17 | // Test with `--offload-new-driver` |
18 | 18 | // RUN: %{build} --offload-new-driver -c -o %t.init.o -DINIT_KERNEL |
19 | 19 | // RUN: %{build} --offload-new-driver -c -o %t.calc.o -DCALC_KERNEL |
20 | 20 | // RUN: %{build} --offload-new-driver -c -o %t.main.o -DMAIN_APP |
21 | | -// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl -fsycl-targets=%{sycl_triple} --offload-new-driver %t.init.o %t.calc.o %t.main.o -o %t.fat |
22 | | -// RUN: %{run} %t.fat |
| 21 | +// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl -fsycl-targets=%{sycl_triple} --offload-new-driver %t.init.o %t.calc.o %t.main.o -o %t2.fat |
| 22 | +// RUN: %{run} %t2.fat |
23 | 23 |
|
24 | 24 | // Multiple sources with kernel code with old-style objects |
25 | 25 | // Test with `--offload-new-driver` |
26 | 26 | // RUN: %{build} --no-offload-new-driver -c -o %t.init.o -DINIT_KERNEL |
27 | 27 | // RUN: %{build} --no-offload-new-driver -c -o %t.calc.o -DCALC_KERNEL |
28 | 28 | // RUN: %{build} --no-offload-new-driver -c -o %t.main.o -DMAIN_APP |
29 | | -// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl -fsycl-targets=%{sycl_triple} --offload-new-driver %t.init.o %t.calc.o %t.main.o -o %t.fat |
30 | | -// RUN: %{run} %t.fat |
| 29 | +// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl -fsycl-targets=%{sycl_triple} --offload-new-driver %t.init.o %t.calc.o %t.main.o -o %t3.fat |
| 30 | +// RUN: %{run} %t3.fat |
31 | 31 |
|
32 | 32 | // Multiple sources with kernel code with old-style objects in a static archive |
33 | 33 | // Test with `--offload-new-driver` |
34 | 34 | // RUN: %{build} --no-offload-new-driver -c -o %t.init.o -DINIT_KERNEL |
35 | 35 | // RUN: %{build} --no-offload-new-driver -c -o %t.calc.o -DCALC_KERNEL |
36 | 36 | // RUN: %{build} --no-offload-new-driver -c -o %t.main.o -DMAIN_APP |
37 | 37 | // RUN: llvm-ar r %t.a %t.init.o %t.calc.o |
38 | | -// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl -fsycl-targets=%{sycl_triple} --offload-new-driver %t.main.o %t.a -o %t.fat |
39 | | -// RUN: %{run} %t.fat |
| 38 | +// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl -fsycl-targets=%{sycl_triple} --offload-new-driver %t.main.o %t.a -o %t4.fat |
| 39 | +// RUN: %{run} %t4.fat |
40 | 40 |
|
41 | 41 | #include <sycl/detail/core.hpp> |
42 | 42 |
|
|
0 commit comments