Skip to content

Commit e92a609

Browse files
[SYCL][E2E] Use fine-grained includes in miscellaneous tests
1 parent 8610669 commit e92a609

File tree

163 files changed

+295
-168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+295
-168
lines changed

sycl/test-e2e/AbiNeutral/catch-exception.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// This test case tests if compiling works with or without
88
// _GLIBCXX_USE_CXX11_ABI=0.
99

10-
#include <sycl/sycl.hpp>
10+
#include <sycl/detail/core.hpp>
1111

1212
int main() {
1313
#ifdef _GLIBCXX_USE_CXX11_ABI

sycl/test-e2e/AbiNeutral/device-info.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <deque>
1010
#include <iostream>
1111
#include <mutex>
12-
#include <sycl/sycl.hpp>
12+
#include <sycl/detail/core.hpp>
1313
#include <vector>
1414

1515
template <typename T> using dpcpp_info_t = typename T::return_type;

sycl/test-e2e/AbiNeutral/submit-kernel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
// _GLIBCXX_USE_CXX11_ABI=0.
88

99
#include <iostream>
10-
#include <sycl/sycl.hpp>
10+
#include <sycl/detail/core.hpp>
11+
#include <sycl/usm.hpp>
1112

1213
int main() {
1314
try {

sycl/test-e2e/Annotated_arg_ptr/annotated_arg.cpp

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

5-
#include <sycl/sycl.hpp>
5+
#include <sycl/detail/core.hpp>
6+
#include <sycl/ext/oneapi/experimental/annotated_arg/annotated_arg.hpp>
7+
#include <sycl/usm.hpp>
68

79
using namespace sycl;
810
using namespace sycl::ext::oneapi::experimental;

sycl/test-e2e/Annotated_arg_ptr/annotated_ptr.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
// RUN: %{run} %t.out
33
// REQUIRES: aspect-usm_shared_allocations
44

5-
#include <sycl/sycl.hpp>
5+
#include <sycl/detail/core.hpp>
66

7+
#include <sycl/ext/oneapi/experimental/annotated_ptr/annotated_ptr.hpp>
8+
#include <sycl/ext/oneapi/experimental/annotated_usm/dealloc.hpp>
79
using namespace sycl;
810
using namespace sycl::ext::oneapi::experimental;
911
using namespace sycl::ext::intel::experimental;

sycl/test-e2e/Annotated_usm/annotated_usm_align.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
// This e2e test checks the alignment of the annotated USM allocation (host &
77
// device) in various cases
88

9-
#include <sycl/sycl.hpp>
9+
#include <sycl/detail/core.hpp>
10+
#include <sycl/ext/oneapi/experimental/annotated_usm/alloc_device.hpp>
11+
#include <sycl/ext/oneapi/experimental/annotated_usm/alloc_host.hpp>
1012

1113
#include <complex>
1214
#include <numeric>
1315

14-
// clang-format on
15-
1616
using namespace sycl::ext::oneapi::experimental;
1717
using namespace sycl::ext::intel::experimental;
1818
using alloc = sycl::usm::alloc;
@@ -424,4 +424,4 @@ int main() {
424424
testAlign<std::complex<double>>(q, 4);
425425
testAlign<MyStruct>(q, 4);
426426
return 0;
427-
}
427+
}

sycl/test-e2e/Annotated_usm/annotated_usm_kind.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
// This e2e test checks the usm kind of the pointer returned by annotated USM
55
// allocation
66

7-
#include <sycl/sycl.hpp>
7+
#include <sycl/detail/core.hpp>
8+
9+
#include <sycl/ext/oneapi/experimental/annotated_usm/alloc_device.hpp>
10+
#include <sycl/ext/oneapi/experimental/annotated_usm/alloc_host.hpp>
11+
#include <sycl/ext/oneapi/experimental/annotated_usm/alloc_shared.hpp>
812

913
#include <complex>
1014
#include <numeric>
1115

12-
// clang-format on
13-
1416
using namespace sycl::ext::oneapi::experimental;
1517
using namespace sycl::ext::intel::experimental;
1618
using alloc = sycl::usm::alloc;

sycl/test-e2e/Annotated_usm/annotated_usm_negative.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
// not have the corresponding aspect, while the gpu runtime has different
1010
// behavior
1111

12-
#include <sycl/sycl.hpp>
12+
#include <sycl/detail/core.hpp>
13+
14+
#include <sycl/ext/oneapi/experimental/annotated_usm/alloc_shared.hpp>
1315

1416
#include <complex>
1517
#include <iostream>
1618

17-
// clang-format on
18-
1919
using namespace sycl::ext::oneapi::experimental;
2020
using namespace sycl::ext::intel::experimental;
2121

sycl/test-e2e/Annotated_usm/annotated_usm_shared_align.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
// This e2e test checks the alignment of the annotated shared USM allocation in
88
// various cases
99

10-
#include <sycl/sycl.hpp>
10+
#include <sycl/detail/core.hpp>
11+
#include <sycl/ext/oneapi/experimental/annotated_usm/alloc_shared.hpp>
12+
#include <sycl/usm.hpp>
1113

1214
#include <complex>
1315
#include <numeric>
@@ -251,4 +253,4 @@ int main() {
251253
testAlign<int>(q, 128);
252254
testAlign<std::complex<double>>(q, 4);
253255
return 0;
254-
}
256+
}

sycl/test-e2e/AtomicRef/device_has_aspect_atomic64_cuda_and_hip.cpp

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

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

88
using namespace sycl;
99

sycl/test-e2e/AtomicRef/device_has_aspect_atomic64_level_zero.cpp

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

55
#include <level_zero/ze_api.h>
6-
#include <sycl/sycl.hpp>
6+
#include <sycl/backend.hpp>
7+
#include <sycl/detail/core.hpp>
78

89
using namespace sycl;
910

sycl/test-e2e/AtomicRef/device_has_aspect_atomic64_opencl.cpp

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

66
#include <CL/cl.h>
7-
#include <sycl/sycl.hpp>
7+
#include <sycl/backend.hpp>
8+
#include <sycl/detail/core.hpp>
89

910
using namespace sycl;
1011

sycl/test-e2e/Basic/image/image.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//
1212
//===----------------------------------------------------------------------===//
1313

14+
#include <sycl/accessor_image.hpp>
1415
#include <sycl/detail/core.hpp>
1516

1617
#include <iostream>

sycl/test-e2e/Basic/image/image_array.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
//
1515
//===----------------------------------------------------------------------===//
1616

17+
#include <sycl/accessor_image.hpp>
1718
#include <sycl/detail/core.hpp>
1819

1920
#include <iostream>

sycl/test-e2e/Complex/sycl_complex_helper.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#include <iomanip>
33

44
#define SYCL_EXT_ONEAPI_COMPLEX
5+
#include <sycl/detail/core.hpp>
56
#include <sycl/ext/oneapi/experimental/complex/complex.hpp>
6-
#include <sycl/sycl.hpp>
77

88
using namespace sycl::ext::oneapi;
99

sycl/test-e2e/CompositeDevice/composite_device.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
// RUN: env ZE_FLAT_DEVICE_HIERARCHY=FLAT %{run} %t.out
55
// UNSUPPORTED: (windows && level_zero)
66

7-
#include <sycl/sycl.hpp>
7+
#include <sycl/detail/core.hpp>
8+
#include <sycl/ext/oneapi/experimental/composite_device.hpp>
89

910
#ifdef SYCL_EXT_ONEAPI_COMPOSITE_DEVICE
1011

sycl/test-e2e/CompositeDevice/device_selector_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// RUN: env ONEAPI_DEVICE_SELECTOR=level_zero:0 ZE_FLAT_DEVICE_HIERARCHY=COMBINED %t.out
33
// REQUIRES: level_zero
44

5-
#include <sycl/sycl.hpp>
5+
#include <sycl/detail/core.hpp>
6+
#include <sycl/ext/oneapi/experimental/composite_device.hpp>
67

78
#ifdef SYCL_EXT_ONEAPI_COMPOSITE_DEVICE
89

sycl/test-e2e/CompositeDevice/run_on_composite_device.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// RUN: %{build} -o %t.out
22
// RUN: env ZE_FLAT_DEVICE_HIERARCHY=COMBINED %{run} %t.out
33

4-
#include <sycl/sycl.hpp>
4+
#include <sycl/detail/core.hpp>
5+
#include <sycl/ext/oneapi/experimental/composite_device.hpp>
56

67
#ifdef SYCL_EXT_ONEAPI_COMPOSITE_DEVICE
78

sycl/test-e2e/Config/allowlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <exception>
1818
#include <iostream>
1919
#include <string>
20-
#include <sycl/sycl.hpp>
20+
#include <sycl/detail/core.hpp>
2121

2222
static void replaceSpecialCharacters(std::string &Str) {
2323
// Replace common special symbols with '.' which matches to any character

sycl/test-e2e/DeprecatedFeatures/deprecated_intel_ext_device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//
1818
//===----------------------------------------------------------------------===//
1919

20-
#include <sycl/sycl.hpp>
20+
#include <sycl/detail/core.hpp>
2121

2222
#include <cassert>
2323
#include <iostream>

sycl/test-e2e/DeprecatedFeatures/device_platform_interop.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
1212
//
1313
//===----------------------------------------------------------------------===//
14-
1514
#include <iostream>
1615
#include <memory>
16+
#include <sycl/backend.hpp>
1717
#include <sycl/backend/opencl.hpp>
18-
#include <sycl/sycl.hpp>
18+
#include <sycl/detail/core.hpp>
1919
#include <unordered_map>
2020
using namespace sycl;
2121

sycl/test-e2e/DeprecatedFeatures/kernel_interop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
1111
//
1212
//===----------------------------------------------------------------------===//
13-
#include <sycl/sycl.hpp>
13+
#include <sycl/detail/core.hpp>
1414

1515
#include <cassert>
1616

sycl/test-e2e/DeprecatedFeatures/opencl_interop.cpp

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

66
#include <cassert>
77
#include <exception>
8-
#include <sycl/sycl.hpp>
8+
#include <sycl/detail/core.hpp>
99
#include <vector>
1010

1111
#define CL_CHECK_ERRORS(ERR) \

sycl/test-e2e/DeprecatedFeatures/sampler_ocl.cpp

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

1414
#include <cassert>
1515
#include <sycl/context.hpp>
16-
#include <sycl/sycl.hpp>
16+
#include <sycl/detail/core.hpp>
1717

1818
namespace sycl {
1919
using namespace sycl;

sycl/test-e2e/DeprecatedFeatures/set_arg_interop.cpp

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

6-
#include <sycl/sycl.hpp>
6+
#include <sycl/detail/core.hpp>
7+
#include <sycl/usm.hpp>
78

89
#include <cassert>
910

sycl/test-e2e/DeprecatedFeatures/subbuffer_interop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//
1212
//===----------------------------------------------------------------------===//
1313

14-
#include <sycl/sycl.hpp>
14+
#include <sycl/detail/core.hpp>
1515

1616
#include <cassert>
1717
#include <iostream>

sycl/test-e2e/DeviceArchitecture/device_architecture_comparison_on_device_aot.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
// RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_pvc %s -o %t.out
33
// RUN: %{run} %t.out
44

5+
#include <sycl/detail/core.hpp>
56
#include <sycl/ext/oneapi/experimental/device_architecture.hpp>
6-
#include <sycl/sycl.hpp>
7+
#include <sycl/usm.hpp>
78

89
using namespace sycl;
910
using namespace sycl::ext::oneapi::experimental;

sycl/test-e2e/DeviceArchitecture/device_architecture_comparison_on_host.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// RUN: %{build} -o %t.out
99
// RUN: %{run} %t.out
1010

11-
#include <sycl/sycl.hpp>
11+
#include <sycl/detail/core.hpp>
1212

1313
namespace syclex = sycl::ext::oneapi::experimental;
1414

sycl/test-e2e/DeviceArchitecture/device_architecture_on_device_aot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %s -o %t.out
33
// RUN: %{run} %t.out
44

5+
#include <sycl/detail/core.hpp>
56
#include <sycl/ext/oneapi/experimental/device_architecture.hpp>
6-
#include <sycl/sycl.hpp>
77

88
using namespace sycl;
99
using namespace sycl::ext::oneapi::experimental;

sycl/test-e2e/DeviceGlobal/common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include <sycl/sycl.hpp>
3+
#include <sycl/detail/core.hpp>
44

55
using namespace sycl;
66
using namespace sycl::ext::oneapi::experimental;

sycl/test-e2e/DeviceGlobal/device_global_arrow.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include "common.hpp"
44

5+
#include <sycl/usm.hpp>
6+
57
struct StructWithMember {
68
int x;
79
int getX() { return x; }

sycl/test-e2e/DeviceLib/ITTAnnotations/atomic.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// RUN: %{build} -fsycl-instrument-device-code -o %t.out
22
// RUN: %{run} %t.out
33

4-
#include "sycl/sycl.hpp"
4+
#include "sycl/atomic_ref.hpp"
5+
#include "sycl/detail/core.hpp"
56

67
using namespace sycl;
78

sycl/test-e2e/DeviceLib/ITTAnnotations/barrier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %{build} -fsycl-instrument-device-code -o %t.out
22
// RUN: %{run} %t.out
33

4-
#include "sycl/sycl.hpp"
4+
#include "sycl/detail/core.hpp"
55
#include <vector>
66

77
using namespace sycl;

sycl/test-e2e/DeviceLib/assert-windows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <array>
2626
#include <assert.h>
2727
#include <iostream>
28-
#include <sycl/sycl.hpp>
28+
#include <sycl/detail/core.hpp>
2929

3030
using namespace sycl;
3131

sycl/test-e2e/DeviceLib/assert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
#include <assert.h>
9696
#include <iostream>
9797
#include <stdlib.h>
98-
#include <sycl/sycl.hpp>
98+
#include <sycl/detail/core.hpp>
9999
#include <sys/types.h>
100100
#include <sys/wait.h>
101101
#include <unistd.h>

sycl/test-e2e/DeviceLib/built-ins/ext_native_math_common.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <cassert>
2-
#include <sycl/sycl.hpp>
2+
#include <sycl/detail/core.hpp>
3+
#include <sycl/ext/oneapi/experimental/builtins.hpp>
34

45
template <typename T, size_t N>
56
void assert_out_of_bound(sycl::marray<T, N> val, sycl::marray<T, N> lower,

sycl/test-e2e/DeviceLib/built-ins/printf.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
// RUN: %{build} -fsycl-device-code-split=per_kernel -D__SYCL_USE_VARIADIC_SPIRV_OCL_PRINTF__ -o %t_var.out
99
// RUN: %{run} %t_var.out | FileCheck %s
1010

11-
#include <sycl/sycl.hpp>
11+
#include <sycl/detail/core.hpp>
12+
#include <sycl/ext/oneapi/experimental/builtins.hpp>
1213

1314
#include <cstdint>
1415
#include <iostream>

0 commit comments

Comments
 (0)