Skip to content

Commit e34ce04

Browse files
[SYCL][E2E] Switch some of Regression/* tests to use <sycl/detail/core.hpp> (#13125)
1 parent fc9d62f commit e34ce04

29 files changed

+75
-29
lines changed

sycl/test-e2e/Regression/2020-spec-constants-debug-info.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
// simple example without crashes/assertions firing at llvm-spirv step due to
77
// debug info corrupted by sycl-post-link
88

9-
#include <sycl/sycl.hpp>
9+
#include <sycl/detail/core.hpp>
10+
11+
#include <sycl/specialization_id.hpp>
1012

1113
constexpr sycl::specialization_id<int> test_id_1{42};
1214

sycl/test-e2e/Regression/barrier_with_work.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// SYCL_PI_LEVEL_ZERO_USE_MULTIPLE_COMMANDLIST_BARRIERS to enable fix on certain
99
// hardware.
1010

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

1315
constexpr size_t NElemsPerSplit = 1000;
1416
constexpr size_t Splits = 8;

sycl/test-e2e/Regression/complex_global_object.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
// REQUIRES: TEMPORARY_DISABLED
1010
// Disable test due to flacky failures
11-
#include <sycl/sycl.hpp>
11+
12+
#include <sycl/detail/core.hpp>
1213

1314
class ComplexClass {
1415
public:

sycl/test-e2e/Regression/context_is_destroyed_after_exception.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//
66
// XFAIL: hip_nvidia
77

8-
#include <sycl/sycl.hpp>
8+
#include <sycl/detail/core.hpp>
99

1010
int main() {
1111
const auto GlobalRange = 1;

sycl/test-e2e/Regression/dummy_event_info.cpp

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

5-
#include <sycl/sycl.hpp>
5+
#include <sycl/detail/core.hpp>
6+
7+
#include <sycl/properties/all_properties.hpp>
68

79
#include <cassert>
810

sycl/test-e2e/Regression/event_destruction.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
//
1212
//===----------------------------------------------------------------------===//
1313
#include <iostream>
14-
#include <sycl/sycl.hpp>
14+
15+
#include <sycl/detail/core.hpp>
1516

1617
const size_t ITERS = 100000;
1718

1819
// The test checks that that event destruction does not lead to stack overflow
1920

2021
int main() {
21-
sycl::queue Q(sycl::default_selector_v);
22+
sycl::queue Q;
2223
sycl::buffer<int, 1> Buf(3000);
2324
for (size_t Idx = 0; Idx < ITERS; ++Idx) {
2425
auto Event = Q.submit([&](sycl::handler &cgh) {

sycl/test-e2e/Regression/exclusive-scan-char-short.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// the maximum or minimum operator is computed correctly.
77
#include "../helpers.hpp"
88
#include <numeric>
9+
910
#include <sycl/sycl.hpp>
1011

1112
using namespace sycl;

sycl/test-e2e/Regression/ext_oneapi_barrier_opt.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66

77
#include <iostream>
88
#include <mutex>
9-
#include <sycl/sycl.hpp>
109
#include <thread>
1110

11+
#include <sycl/detail/core.hpp>
12+
13+
#include <sycl/properties/all_properties.hpp>
14+
1215
static constexpr int niter = 1024;
1316
static constexpr int nthreads = 2;
1417

sycl/test-e2e/Regression/fsycl-host-compiler-win.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
//
1313
// Uses -fsycl-host-compiler=<compiler> on a simple test, requires 'cl'
1414

15-
#include <sycl/sycl.hpp>
15+
#include <sycl/detail/core.hpp>
16+
17+
#include <sycl/properties/all_properties.hpp>
1618

1719
#ifndef DEFINE_CHECK
1820
#error predefined macro not set

sycl/test-e2e/Regression/get_spec_const_vec16.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
// Tests that the right value returned after setting a specialization constant
55
// of sycl::vec<char, 16> type is correct.
66

7-
#include <sycl/sycl.hpp>
7+
#include <sycl/detail/core.hpp>
8+
9+
#include <sycl/specialization_id.hpp>
810

911
#include <algorithm>
1012

sycl/test-e2e/Regression/group_local_linear_id.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
// corresponding group.
66

77
#include <iostream>
8-
#include <sycl/sycl.hpp>
8+
9+
#include <sycl/detail/core.hpp>
910

1011
int main() {
1112
const sycl::range<3> GlobalRange(2, 8, 16);

sycl/test-e2e/Regression/half_operators.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out
33
// RUN: %{run} %t.out
44
#include <iostream>
5-
#include <sycl.hpp>
65
#include <vector>
76

7+
#include <sycl/detail/core.hpp>
8+
89
using namespace sycl;
910

1011
template <typename T> bool are_bitwise_equal(T lhs, T rhs) {

sycl/test-e2e/Regression/image_access.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
//===----------------------------------------------------------------------===//
1515

1616
#include <iostream>
17-
#include <sycl/sycl.hpp>
17+
18+
#include <sycl/detail/core.hpp>
1819

1920
int main() {
2021
try {

sycl/test-e2e/Regression/implicit_kernel_bundle_image_filtering.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
// setting a specialization ID from host) only builds the device image
66
// containing the kernel it launches.
77

8-
#include <sycl/sycl.hpp>
8+
#include <sycl/detail/core.hpp>
9+
10+
#include <sycl/specialization_id.hpp>
911

1012
#include <iostream>
1113

sycl/test-e2e/Regression/implicit_offset_debug_info.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
// NOTE: Tests that the implicit global offset pass copies debug information
66

7-
#include <sycl/sycl.hpp>
7+
#include <sycl/detail/core.hpp>
8+
89
using namespace sycl;
910

1011
int main() {

sycl/test-e2e/Regression/invalid_reqd_wg_size_correct_exception.cpp

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

44
// UNSUPPORTED: hip
55

6-
#include <sycl/sycl.hpp>
6+
#include <sycl/detail/core.hpp>
77

88
int main() {
99
try {

sycl/test-e2e/Regression/local-arg-align.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
//===----------------------------------------------------------------------===//
1515

1616
#include <iostream>
17-
#include <sycl/sycl.hpp>
17+
18+
#include <sycl/detail/core.hpp>
1819

1920
using namespace sycl;
2021

sycl/test-e2e/Regression/local_accessor_3d_subscript.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
// compiles and runs.
1313

1414
#include <iostream>
15-
#include <sycl/sycl.hpp>
15+
16+
#include <sycl/detail/core.hpp>
1617

1718
int main() {
1819
size_t Result = 0;

sycl/test-e2e/Regression/msvc_crt.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
// MSVC provides two different incompatible variants of CRT: debug and release.
1515
// This test checks if clang driver is able to handle this properly.
1616

17-
#include <sycl/sycl.hpp>
17+
#include <sycl/detail/core.hpp>
18+
19+
#include <sycl/properties/all_properties.hpp>
1820

1921
using namespace sycl;
2022

sycl/test-e2e/Regression/multiple-targets.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// XFAIL: hip_nvidia
1919
//
2020

21-
#include <sycl/sycl.hpp>
21+
#include <sycl/detail/core.hpp>
2222

2323
int main() {
2424
sycl::queue Q;

sycl/test-e2e/Regression/nop_event_profiling.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
// Test to check that it is possible to get profiling info from the event
55
// returned by barrier which turns into NOP.
66

7-
#include <sycl/sycl.hpp>
7+
#include <sycl/detail/core.hpp>
8+
9+
#include <sycl/properties/all_properties.hpp>
810

911
int main() {
1012
sycl::event start;

sycl/test-e2e/Regression/pf-wg-atomic64.cpp

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

5-
#include <sycl/sycl.hpp>
5+
#include <sycl/detail/core.hpp>
6+
7+
#include <sycl/atomic_ref.hpp>
8+
69
using namespace sycl;
710

811
using AtomicRefT =

sycl/test-e2e/Regression/reduction_64bit_atomic64.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
// test is run. However, it should work on devices that support atomic64
1010
// as well.
1111

12-
#include <sycl/sycl.hpp>
12+
#include <sycl/detail/core.hpp>
13+
14+
#include <sycl/reduction.hpp>
1315

1416
#include <iostream>
1517

sycl/test-e2e/Regression/reduction_resource_leak_dw.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
// Tests that additional resources required by discard_write reductions do not
1010
// leak.
1111

12-
#include <sycl/sycl.hpp>
12+
#include <sycl/detail/core.hpp>
13+
14+
#include <sycl/reduction.hpp>
1315

1416
using namespace sycl;
1517

sycl/test-e2e/Regression/reduction_resource_leak_usm.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
// Tests that additional resources required by USM reductions do not leak.
1111

12-
#include <sycl/sycl.hpp>
12+
#include <sycl/detail/core.hpp>
13+
14+
#include <sycl/reduction.hpp>
1315

1416
using namespace sycl;
1517

sycl/test-e2e/Regression/unoptimized_stream.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
// UNSUPPORTED: accelerator
88

9-
#include <sycl/sycl.hpp>
9+
#include <sycl/detail/core.hpp>
10+
11+
#include <sycl/stream.hpp>
1012

1113
int main() {
1214
sycl::queue q;

sycl/test-e2e/Regression/usm_malloc_shared.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99

1010
#include <iostream>
1111
#include <stdlib.h>
12-
#include <sycl/sycl.hpp>
12+
13+
#include <sycl/detail/core.hpp>
14+
15+
#include <sycl/usm.hpp>
16+
1317
using namespace sycl;
1418

1519
int main(int argc, char *argv[]) {

sycl/test-e2e/Regression/void_global_ptr_conversion.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
// CHECK: 9
1212

1313
#include <iostream>
14-
#include <sycl/sycl.hpp>
14+
15+
#include <sycl/detail/core.hpp>
16+
17+
#include <sycl/usm.hpp>
1518

1619
using namespace sycl;
1720
using namespace sycl::access;

sycl/test-e2e/Regression/zero_size_local_accessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12-
#include <sycl/sycl.hpp>
12+
#include <sycl/detail/core.hpp>
1313

1414
int main() {
1515
sycl::queue Q;

0 commit comments

Comments
 (0)