Skip to content

Commit c281475

Browse files
committed
Build to different files on multisource tests
1 parent f28bbcd commit c281475

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

sycl/test-e2e/Basic/multisource.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// RUN: %{build} -c -o %t.init.o -DINIT_KERNEL
10-
// RUN: %{build} -c -o %t.calc.o -DCALC_KERNEL
9+
// Separate kernel sources and host code sources
1110
// RUN: %{build} -c -o %t.kernel.o -DINIT_KERNEL -DCALC_KERNEL
1211
// RUN: %{build} -c -o %t.main.o -DMAIN_APP
13-
14-
// Separate kernel sources and host code sources
1512
// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} %t.kernel.o %t.main.o -Wno-unused-command-line-argument -o %t1.fat
1613
// RUN: %{run} %t1.fat
1714

1815
// Multiple sources with kernel code
16+
// RUN: %{build} -c -o %t.init.o -DINIT_KERNEL
17+
// RUN: %{build} -c -o %t.calc.o -DCALC_KERNEL
18+
// RUN: %{build} -c -o %t.main.o -DMAIN_APP
1919
// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} %t.init.o %t.calc.o %t.main.o -Wno-unused-command-line-argument -o %t2.fat
2020
// RUN: %{run} %t2.fat
2121

sycl/test-e2e/Basic/multisource_spv_obj.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,25 @@
77
//===----------------------------------------------------------------------===//
88

99
// UNSUPPORTED: cuda || hip
10-
10+
//
11+
// Separate kernel sources and host code sources
1112
// RUN: %{build} -fsycl-device-obj=spirv -c -o %t.kernel.o -DINIT_KERNEL -DCALC_KERNEL
12-
// RUN: %{build} -fsycl-device-obj=spirv -c -o %t.init.o -DINIT_KERNEL
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
1513
// RUN: %{build} -fsycl-device-obj=spirv -c -o %t.main.o -DMAIN_APP
16-
// RUN: %{build} -c -o %t.main.llvmir.o -DMAIN_APP
17-
18-
// Separate kernel sources and host code sources
1914
// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} %t.kernel.o %t.main.o -Wno-unused-command-line-argument -o %t1.fat
2015
// RUN: %{run} %t1.fat
2116

2217
// Multiple sources with kernel code
18+
// RUN: %{build} -fsycl-device-obj=spirv -c -o %t.init.o -DINIT_KERNEL
19+
// RUN: %{build} -fsycl-device-obj=spirv -c -o %t.calc.o -DCALC_KERNEL
20+
// RUN: %{build} -fsycl-device-obj=spirv -c -o %t.main.o -DMAIN_APP
2321
// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} %t.init.o %t.calc.o %t.main.o -Wno-unused-command-line-argument -o %t2.fat
2422
// RUN: %{run} %t2.fat
2523

2624
// Multiple sources with kernel code, mixed SPIR-V and LLVM-IR objects
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
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 %t3.fat
2829
// RUN: %{run} %t3.fat
2930

3031
#include <sycl/detail/core.hpp>

sycl/test-e2e/NewOffloadDriver/multisource.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,33 @@
1010
// Test with `--offload-new-driver`
1111
// RUN: %{build} --offload-new-driver -c -o %t.kernel.o -DINIT_KERNEL -DCALC_KERNEL
1212
// 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
1515

1616
// Multiple sources with kernel code
1717
// Test with `--offload-new-driver`
1818
// RUN: %{build} --offload-new-driver -c -o %t.init.o -DINIT_KERNEL
1919
// RUN: %{build} --offload-new-driver -c -o %t.calc.o -DCALC_KERNEL
2020
// 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
2323

2424
// Multiple sources with kernel code with old-style objects
2525
// Test with `--offload-new-driver`
2626
// RUN: %{build} --no-offload-new-driver -c -o %t.init.o -DINIT_KERNEL
2727
// RUN: %{build} --no-offload-new-driver -c -o %t.calc.o -DCALC_KERNEL
2828
// 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
3131

3232
// Multiple sources with kernel code with old-style objects in a static archive
3333
// Test with `--offload-new-driver`
3434
// RUN: %{build} --no-offload-new-driver -c -o %t.init.o -DINIT_KERNEL
3535
// RUN: %{build} --no-offload-new-driver -c -o %t.calc.o -DCALC_KERNEL
3636
// RUN: %{build} --no-offload-new-driver -c -o %t.main.o -DMAIN_APP
3737
// 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
4040

4141
#include <sycl/detail/core.hpp>
4242

0 commit comments

Comments
 (0)