Skip to content

Commit 0202b86

Browse files
[NFC][SYCL] Reduce dependencies of sycl/detail/helpers.hpp
1 parent 02c4600 commit 0202b86

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

sycl/include/sycl/detail/helpers.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@
1818
#endif
1919

2020
#include <cstddef> // for size_t
21-
#include <memory> // for shared_ptr
2221
#include <stdint.h> // for uint32_t
2322
#include <type_traits> // for enable_if_t, integral_constant
2423
#include <utility> // for forward, integer_sequence, mak...
25-
#include <vector> // for vector
2624

2725
namespace sycl {
2826
inline namespace _V1 {
@@ -38,11 +36,6 @@ template <typename Type, std::size_t NumElements> class marray;
3836
enum class memory_order;
3937

4038
namespace detail {
41-
class buffer_impl;
42-
43-
__SYCL_EXPORT void
44-
markBufferAsInternal(const std::shared_ptr<buffer_impl> &BufImpl);
45-
4639
template <typename T> T *declptr() { return static_cast<T *>(nullptr); }
4740

4841
// Function to get or store id, item, nd_item, group for the host implementation

sycl/include/sycl/handler.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ class graph_impl;
166166
class dynamic_parameter_impl;
167167
} // namespace ext::oneapi::experimental::detail
168168
namespace detail {
169+
class buffer_impl;
170+
171+
__SYCL_EXPORT void
172+
markBufferAsInternal(const std::shared_ptr<buffer_impl> &BufImpl);
169173

170174
class type_erased_cgfo_ty {
171175
// From SYCL 2020, command group function object:

0 commit comments

Comments
 (0)