Skip to content

Commit bdd0fd1

Browse files
[NFC][SYCL] Minor includes cleanup (#20178)
Trying to reduce compile-time for ```c++ namespace oneapi = sycl::ext::oneapi; extern "C" SYCL_EXT_ONEAPI_FUNCTION_PROPERTY((oneapi::experimental::nd_range_kernel<1>)) void iota(float start, float *ptr) { size_t id = oneapi::this_work_item::get_nd_item<1>().get_global_linear_id(); ptr[id] = start + static_cast<float>(id); } ```
1 parent fdf9c57 commit bdd0fd1

File tree

6 files changed

+6
-17
lines changed

6 files changed

+6
-17
lines changed

sycl/include/sycl/detail/common.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <cassert> // for assert
2121
#include <cstddef> // for size_t
2222
#include <cstdint>
23-
#include <string> // for allocator, operator+
2423
#include <type_traits> // for enable_if_t
2524
#include <utility> // for index_sequence, make_i...
2625

@@ -200,10 +199,6 @@ class __SYCL_EXPORT tls_code_loc_t {
200199
#define __SYCL_ASSERT(x) assert(x)
201200
#endif // #ifdef __SYCL_DEVICE_ONLY__
202201

203-
#define __SYCL_UR_ERROR_REPORT(backend) \
204-
std::string(sycl::detail::get_backend_name_no_vendor(backend)) + \
205-
" backend failed with error: "
206-
207202
namespace sycl {
208203
inline namespace _V1 {
209204
namespace detail {

sycl/include/sycl/ext/oneapi/properties/properties.hpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@
99
#pragma once
1010

1111
#include <sycl/detail/type_traits.hpp>
12-
#include <sycl/ext/oneapi/properties/property.hpp> // for IsRuntimePr...
13-
#include <sycl/ext/oneapi/properties/property_utils.hpp> // for Sorted, Mer...
14-
#include <sycl/ext/oneapi/properties/property_value.hpp> // for property_value
15-
16-
#include <tuple> // for tuple, tupl...
17-
#include <type_traits> // for enable_if_t
18-
#include <variant> // for tuple
12+
#include <sycl/ext/oneapi/properties/property_utils.hpp>
1913

2014
namespace sycl {
2115
inline namespace _V1 {

sycl/include/sycl/ext/oneapi/properties/property_utils.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@
1111
#include <sycl/ext/oneapi/properties/property.hpp>
1212
#include <sycl/ext/oneapi/properties/property_value.hpp>
1313

14-
#include <array> // for tuple_element
1514
#include <stddef.h> // for size_t
16-
#include <tuple> // for tuple
1715
#include <type_traits> // for false_type, true_...
18-
#include <variant> // for tuple
1916

2017
namespace sycl {
2118
inline namespace _V1 {

sycl/include/sycl/ext/oneapi/properties/property_value.hpp

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

1111
#include <sycl/ext/oneapi/properties/property.hpp>
1212

13-
#include <type_traits> // for enable_if_t
14-
1513
namespace sycl {
1614
inline namespace _V1 {
1715
namespace ext::oneapi::experimental {

sycl/source/detail/adapter_impl.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
#include <memory>
2525
#include <mutex>
2626

27+
#define __SYCL_UR_ERROR_REPORT(backend) \
28+
std::string(sycl::detail::get_backend_name_no_vendor(backend)) + \
29+
" backend failed with error: "
30+
2731
#define __SYCL_CHECK_UR_CODE_NO_EXC(expr, backend) \
2832
{ \
2933
auto code = expr; \

sycl/unittests/helpers/ScopedEnvVar.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <cstdlib>
1414
#include <functional>
1515
#include <stdlib.h>
16+
#include <string>
1617

1718
namespace sycl {
1819
inline namespace _V1 {

0 commit comments

Comments
 (0)