Skip to content

Commit 93ce40a

Browse files
[SYCL][E2E] Switch Reduction/* tests to use <sycl/detail/core.hpp> (#13126)
1 parent e1df9e9 commit 93ce40a

8 files changed

+28
-11
lines changed

sycl/test-e2e/Reduction/reduction_complex_nums.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
#include <complex>
99
#include <numeric>
1010

11-
#include <sycl/sycl.hpp>
11+
#include <sycl/detail/core.hpp>
12+
13+
#include <sycl/reduction.hpp>
1214

1315
using namespace sycl;
1416

sycl/test-e2e/Reduction/reduction_ctor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
// Note: This test relies on non-standard implementation details.
1010

1111
#include "reduction_utils.hpp"
12+
1213
#include <cassert>
13-
#include <sycl/sycl.hpp>
1414

1515
using namespace sycl;
1616

sycl/test-e2e/Reduction/reduction_internal.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
33

4-
#include <sycl/sycl.hpp>
4+
#include <sycl/detail/core.hpp>
5+
6+
#include <sycl/reduction.hpp>
7+
58
using namespace sycl;
69

710
template <int Dims> auto get_global_range(range<Dims> Range) { return Range; }

sycl/test-e2e/Reduction/reduction_range_item.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33

44
// Windows doesn't yet have full shutdown().
55
// UNSUPPORTED: ze_debug && windows
6-
#include <sycl/sycl.hpp>
6+
7+
#include <sycl/detail/core.hpp>
8+
9+
#include <sycl/reduction.hpp>
710

811
using namespace sycl;
912

sycl/test-e2e/Reduction/reduction_span.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
// UNSUPPORTED: ze_debug && windows
66
// This test performs basic checks of reductions initialized with a sycl::span
77

8-
#include <sycl/sycl.hpp>
8+
#include <sycl/detail/core.hpp>
9+
10+
#include <sycl/reduction.hpp>
11+
912
using namespace sycl;
1013

1114
int NumErrors = 0;

sycl/test-e2e/Reduction/reduction_span_pack.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
// This test performs basic checks of reductions initialized with a pack
1010
// containing at least one sycl::span
1111

12-
#include <sycl/sycl.hpp>
12+
#include <sycl/detail/core.hpp>
13+
14+
#include <sycl/reduction.hpp>
15+
1316
using namespace sycl;
1417

1518
int NumErrors = 0;

sycl/test-e2e/Reduction/reduction_utils.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
#include <iostream>
33
#include <optional>
44

5-
#include <sycl/sycl.hpp>
5+
#include <sycl/detail/core.hpp>
6+
7+
#include <sycl/ext/oneapi/functional.hpp>
8+
#include <sycl/reduction.hpp>
69

710
using namespace sycl;
811

sycl/test-e2e/Reduction/regression_after_pr_6343.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
33

4-
#include <sycl/sycl.hpp>
4+
#include <sycl/detail/core.hpp>
5+
6+
#include <sycl/reduction.hpp>
57

68
using namespace sycl;
79

810
int main() {
9-
device d(default_selector_v);
10-
context ctx{d};
11-
queue q{ctx, d};
11+
queue q;
1212

1313
int WGSize = 256;
1414
// Reduction implementation would spawn several other kernels to reduce

0 commit comments

Comments
 (0)