Skip to content

Commit ee7d39f

Browse files
committed
Build executables to different files for Basic e2e tests
1 parent 23a9cd0 commit ee7d39f

File tree

3 files changed

+25
-26
lines changed

3 files changed

+25
-26
lines changed

sycl/test-e2e/Basic/code_location_e2e.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// UNSUPPORTED: cuda
22

3-
// RUN: %{build} -DNDEBUG -o %t.out
4-
// RUN: %{run} %t.out | FileCheck %s
3+
// RUN: %{build} -DNDEBUG -o %t1.out
4+
// RUN: %{run} %t1.out | FileCheck %s
55

6-
// RUN: %{build} -o %t.out
7-
// RUN: %{run} %t.out | FileCheck %s
6+
// RUN: %{build} -o %t2.out
7+
// RUN: %{run} %t2.out | FileCheck %s
88

99
/*
1010
clang++ -fsycl -DNDEBUG -o smyl.bin code_location_e2e.cpp // <<--- NDEBUG

sycl/test-e2e/Basic/multisource.cpp

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

9-
// Separate kernel sources and host code sources
9+
// RUN: %{build} -c -o %t.init.o -DINIT_KERNEL
10+
// RUN: %{build} -c -o %t.calc.o -DCALC_KERNEL
1011
// RUN: %{build} -c -o %t.kernel.o -DINIT_KERNEL -DCALC_KERNEL
1112
// RUN: %{build} -c -o %t.main.o -DMAIN_APP
12-
// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} %t.kernel.o %t.main.o -Wno-unused-command-line-argument -o %t.fat
13-
// RUN: %{run} %t.fat
13+
14+
// Separate kernel sources and host code sources
15+
// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} %t.kernel.o %t.main.o -Wno-unused-command-line-argument -o %t1.fat
16+
// RUN: %{run} %t1.fat
1417

1518
// 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
19-
// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} %t.init.o %t.calc.o %t.main.o -Wno-unused-command-line-argument -o %t.fat
20-
// RUN: %{run} %t.fat
19+
// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} %t.init.o %t.calc.o %t.main.o -Wno-unused-command-line-argument -o %t2.fat
20+
// RUN: %{run} %t2.fat
2121

2222
#include <sycl/detail/core.hpp>
2323

sycl/test-e2e/Basic/multisource_spv_obj.cpp

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,25 @@
77
//===----------------------------------------------------------------------===//
88

99
// 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
1610

17-
// Multiple sources with kernel code
11+
// RUN: %{build} -fsycl-device-obj=spirv -c -o %t.kernel.o -DINIT_KERNEL -DCALC_KERNEL
1812
// RUN: %{build} -fsycl-device-obj=spirv -c -o %t.init.o -DINIT_KERNEL
1913
// 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
2015
// 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
2325

2426
// 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
3029

3130
#include <sycl/detail/core.hpp>
3231

0 commit comments

Comments
 (0)