|
7 | 7 | //===----------------------------------------------------------------------===// |
8 | 8 |
|
9 | 9 | // UNSUPPORTED: cuda || hip |
10 | | -// |
11 | | -// Separate kernel sources and host code sources |
12 | | -// RUN: %{build} -fsycl-device-obj=spirv -c -o %t.kernel.o -DINIT_KERNEL -DCALC_KERNEL |
13 | | -// RUN: %{build} -fsycl-device-obj=spirv -c -o %t.main.o -DMAIN_APP |
14 | | -// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} %t.kernel.o %t.main.o -Wno-unused-command-line-argument -o %t.fat |
15 | | -// RUN: %{run} %t.fat |
16 | 10 |
|
17 | | -// Multiple sources with kernel code |
| 11 | +// RUN: %{build} -fsycl-device-obj=spirv -c -o %t.kernel.o -DINIT_KERNEL -DCALC_KERNEL |
18 | 12 | // RUN: %{build} -fsycl-device-obj=spirv -c -o %t.init.o -DINIT_KERNEL |
19 | 13 | // RUN: %{build} -fsycl-device-obj=spirv -c -o %t.calc.o -DCALC_KERNEL |
| 14 | +// RUN: %{build} -fsycl-device-obj=llvmir -c -o %t.calc.llvmir.o -DCALC_KERNEL |
20 | 15 | // RUN: %{build} -fsycl-device-obj=spirv -c -o %t.main.o -DMAIN_APP |
21 | | -// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} %t.init.o %t.calc.o %t.main.o -Wno-unused-command-line-argument -o %t.fat |
22 | | -// RUN: %{run} %t.fat |
| 16 | +// RUN: %{build} -c -o %t.main.llvmir.o -DMAIN_APP |
| 17 | + |
| 18 | +// Separate kernel sources and host code sources |
| 19 | +// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} %t.kernel.o %t.main.o -Wno-unused-command-line-argument -o %t1.fat |
| 20 | +// RUN: %{run} %t1.fat |
| 21 | + |
| 22 | +// Multiple sources with kernel code |
| 23 | +// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} %t.init.o %t.calc.o %t.main.o -Wno-unused-command-line-argument -o %t2.fat |
| 24 | +// RUN: %{run} %t2.fat |
23 | 25 |
|
24 | 26 | // Multiple sources with kernel code, mixed SPIR-V and LLVM-IR objects |
25 | | -// RUN: %{build} -fsycl-device-obj=spirv -c -o %t.init.o -DINIT_KERNEL |
26 | | -// RUN: %{build} -fsycl-device-obj=llvmir -c -o %t.calc.o -DCALC_KERNEL |
27 | | -// RUN: %{build} -c -o %t.main.o -DMAIN_APP |
28 | | -// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} %t.init.o %t.calc.o %t.main.o -Wno-unused-command-line-argument -o %t.fat |
29 | | -// RUN: %{run} %t.fat |
| 27 | +// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} %t.init.o %t.calc.llvmir.o %t.main.llvmir.o -Wno-unused-command-line-argument -o %t3.fat |
| 28 | +// RUN: %{run} %t3.fat |
30 | 29 |
|
31 | 30 | #include <sycl/detail/core.hpp> |
32 | 31 |
|
|
0 commit comments