Skip to content

Commit f770f69

Browse files
[SYCL] Don't include <sycl/device.hpp> from <sycl/accessor.hpp> (#13577)
1 parent 6b2fb66 commit f770f69

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

sycl/include/sycl/accessor.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include <sycl/detail/property_list_base.hpp> // for PropertyListBase
2828
#include <sycl/detail/type_list.hpp> // for is_contained
2929
#include <sycl/detail/type_traits.hpp> // for const_if_const_AS
30-
#include <sycl/device.hpp> // for device
3130
#include <sycl/exception.hpp> // for make_error_code
3231
#include <sycl/ext/oneapi/accessor_property_list.hpp> // for accessor_prope...
3332
#include <sycl/ext/oneapi/weak_object_base.hpp> // for getSyclWeakObj...

sycl/include/sycl/accessor_image.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include <sycl/accessor.hpp>
44
#include <sycl/detail/image_accessor_util.hpp>
5+
#include <sycl/device.hpp>
56
#include <sycl/image.hpp>
67

78
#ifdef __SYCL_DEVICE_ONLY__

sycl/test/include_deps/sycl_accessor.hpp.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@
113113
// CHECK-NEXT: detail/accessor_iterator.hpp
114114
// CHECK-NEXT: detail/generic_type_traits.hpp
115115
// CHECK-NEXT: detail/handler_proxy.hpp
116-
// CHECK-NEXT: device.hpp
117-
// CHECK-NEXT: kernel_bundle_enums.hpp
118116
// CHECK-NEXT: pointers.hpp
119117
// CHECK-NEXT: properties/accessor_properties.hpp
120118
// CHECK-NEXT: image.hpp

sycl/test/include_deps/sycl_detail_core.hpp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@
114114
// CHECK-NEXT: detail/accessor_iterator.hpp
115115
// CHECK-NEXT: detail/generic_type_traits.hpp
116116
// CHECK-NEXT: detail/handler_proxy.hpp
117-
// CHECK-NEXT: device.hpp
118-
// CHECK-NEXT: kernel_bundle_enums.hpp
119117
// CHECK-NEXT: pointers.hpp
120118
// CHECK-NEXT: properties/accessor_properties.hpp
121119
// CHECK-NEXT: image.hpp
@@ -139,6 +137,8 @@
139137
// CHECK-NEXT: h_item.hpp
140138
// CHECK-NEXT: item.hpp
141139
// CHECK-NEXT: interop_handle.hpp
140+
// CHECK-NEXT: device.hpp
141+
// CHECK-NEXT: kernel_bundle_enums.hpp
142142
// CHECK-NEXT: exception_list.hpp
143143
// CHECK-NEXT: kernel_handler.hpp
144144
// CHECK-NEXT: nd_item.hpp

0 commit comments

Comments
 (0)