|
8 | 8 |
|
9 | 9 | #pragma once
|
10 | 10 |
|
11 |
| -#include <sycl/__spirv/spirv_types.hpp> // for Scope, __ocl_event_t |
12 |
| -#include <sycl/access/access.hpp> // for decorated, mode, addr... |
13 |
| -#include <sycl/detail/common.hpp> // for NDLoop, __SYCL_ASSERT |
14 |
| -#include <sycl/detail/defines.hpp> // for __SYCL_TYPE |
15 |
| -#include <sycl/detail/defines_elementary.hpp> // for __SYCL2020_DEPRECATED |
| 11 | +#include <sycl/__spirv/spirv_types.hpp> // for Scope, __ocl_event_t |
| 12 | +#include <sycl/access/access.hpp> // for decorated, mode, addr... |
| 13 | +#include <sycl/detail/common.hpp> // for NDLoop |
| 14 | +#include <sycl/detail/defines.hpp> // for __SYCL_TYPE |
| 15 | +#include <sycl/detail/defines_elementary.hpp> // for __SYCL2020_DEPRECATED |
| 16 | +#include <sycl/detail/fwd/multi_ptr.hpp> |
16 | 17 | #include <sycl/detail/generic_type_traits.hpp> // for convertToOpenCLType
|
17 | 18 | #include <sycl/detail/helpers.hpp> // for Builder, getSPIRVMemo...
|
18 |
| -#include <sycl/detail/item_base.hpp> // for id, range |
19 | 19 | #include <sycl/detail/type_traits.hpp> // for is_bool, change_base_...
|
20 | 20 | #include <sycl/device_event.hpp> // for device_event
|
21 |
| -#include <sycl/exception.hpp> // for make_error_code, errc |
22 |
| -#include <sycl/h_item.hpp> // for h_item |
23 | 21 | #include <sycl/id.hpp> // for id
|
24 | 22 | #include <sycl/item.hpp> // for item
|
25 | 23 | #include <sycl/memory_enums.hpp> // for memory_scope
|
26 |
| -#include <sycl/multi_ptr.hpp> // for multi_ptr, address_sp... |
27 | 24 | #include <sycl/pointers.hpp> // for decorated_global_ptr
|
28 | 25 | #include <sycl/range.hpp> // for range
|
29 | 26 |
|
30 |
| -#include <memory> // for unique_ptr |
| 27 | +#ifndef __SYCL_DEVICE_ONLY__ |
| 28 | +#include <sycl/exception.hpp> |
| 29 | + |
| 30 | +#include <memory> // for unique_ptr |
| 31 | +#endif |
| 32 | + |
31 | 33 | #include <stddef.h> // for size_t
|
32 | 34 | #include <stdint.h> // for uint8_t, uint32_t
|
33 | 35 | #include <type_traits> // for enable_if_t, remove_c...
|
34 | 36 |
|
35 | 37 | namespace sycl {
|
36 | 38 | inline namespace _V1 {
|
37 |
| -namespace detail { |
38 |
| -class Builder; |
| 39 | +template <int Dimensions> class h_item; |
39 | 40 |
|
| 41 | +namespace detail { |
40 | 42 | // Implements a barrier accross work items within a work group.
|
41 | 43 | inline void workGroupBarrier() {
|
42 | 44 | #ifdef __SYCL_DEVICE_ONLY__
|
|
0 commit comments