File tree Expand file tree Collapse file tree 13 files changed +45
-17
lines changed
include/sycl/ext/oneapi/experimental Expand file tree Collapse file tree 13 files changed +45
-17
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,7 @@ namespace property::node {
38
38
class depends_on ;
39
39
} // namespace property::node
40
40
41
- // / State to template the command_graph class on.
42
- enum class graph_state {
43
- modifiable, // /< In modifiable state, commands can be added to graph.
44
- executable, // /< In executable state, the graph is ready to execute.
45
- };
46
-
41
+ enum class graph_state ;
47
42
template <graph_state State> class command_graph ;
48
43
49
44
namespace detail {
Original file line number Diff line number Diff line change 9
9
#pragma once
10
10
11
11
#include " graph/command_graph.hpp"
12
+ #include " graph/common.hpp"
12
13
#include " graph/dynamic.hpp"
13
14
#include " graph/executable_graph.hpp"
14
15
#include " graph/modifiable_graph.hpp"
Original file line number Diff line number Diff line change 8
8
9
9
#pragma once
10
10
11
+ #include " common.hpp" // for graph_state
11
12
#include " executable_graph.hpp"
12
13
#include " modifiable_graph.hpp"
13
- #include < sycl/ext/oneapi/experimental/detail/properties/graph_properties.hpp> // for graph_state
14
14
15
15
#include < functional> // for function
16
16
#include < memory> // for shared_ptr
Original file line number Diff line number Diff line change
1
+ // ==----------- graph_common.hpp --- SYCL graph properties -----------------==//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ //
7
+ // ===----------------------------------------------------------------------===//
8
+
9
+ #pragma once
10
+
11
+ namespace sycl {
12
+ inline namespace _V1 {
13
+ namespace ext {
14
+ namespace oneapi {
15
+ namespace experimental {
16
+
17
+ // / State to template the command_graph class on.
18
+ enum class graph_state {
19
+ modifiable, // /< In modifiable state, commands can be added to graph.
20
+ executable, // /< In executable state, the graph is ready to execute.
21
+ };
22
+
23
+ } // namespace experimental
24
+ } // namespace oneapi
25
+ } // namespace ext
26
+ } // namespace _V1
27
+ } // namespace sycl
Original file line number Diff line number Diff line change 9
9
#pragma once
10
10
11
11
#include " command_graph.hpp"
12
+ #include " common.hpp" // for graph_state
12
13
#include < sycl/accessor.hpp> // for local_accessor
13
14
#include < sycl/detail/export.hpp> // for __SYCL_EXPORT
14
15
#include < sycl/detail/kernel_desc.hpp> // for kernel_param_kind_t
15
- #include < sycl/ext/oneapi/experimental/detail/properties/graph_properties.hpp> // for graph_state
16
16
#include < sycl/ext/oneapi/experimental/work_group_memory.hpp> // for work_group_memory
17
17
#include < sycl/ext/oneapi/properties/properties.hpp> // for empty_properties_t
18
18
Original file line number Diff line number Diff line change 8
8
9
9
#pragma once
10
10
11
- #include < sycl/detail/export .hpp> // for __SYCL_EXPORT
12
- #include < sycl/detail/owner_less_base .hpp> // for OwnerLessBase
13
- #include < sycl/ext/oneapi/experimental/ detail/properties/graph_properties .hpp> // for graph_state
11
+ #include " common .hpp" // for graph_state
12
+ #include < sycl/detail/export .hpp> // for __SYCL_EXPORT
13
+ #include < sycl/detail/owner_less_base .hpp> // for OwnerLessBase
14
14
#include < sycl/ext/oneapi/experimental/graph/node.hpp> // for node class
15
15
#include < sycl/property_list.hpp> // for property_list
16
16
Original file line number Diff line number Diff line change 8
8
9
9
#pragma once
10
10
11
- #include < sycl/detail/export .hpp> // for __SYCL_EXPORT
12
- #include < sycl/detail/owner_less_base .hpp> // for OwnerLessBase
13
- #include < sycl/detail/string_view .hpp> // for string_view
14
- #include < sycl/ext/oneapi/experimental/ detail/properties/graph_properties .hpp> // for graph_state
11
+ #include " common .hpp" // for graph_state
12
+ #include < sycl/detail/export .hpp> // for __SYCL_EXPORT
13
+ #include < sycl/detail/owner_less_base .hpp> // for OwnerLessBase
14
+ #include < sycl/detail/string_view .hpp> // for string_view
15
15
#include < sycl/ext/oneapi/experimental/graph/node.hpp> // for node class
16
16
#include < sycl/property_list.hpp> // for property_list
17
17
Original file line number Diff line number Diff line change 8
8
9
9
#pragma once
10
10
11
+ #include " common.hpp" // for graph_state
11
12
#include < sycl/detail/export.hpp> // for __SYCL_EXPORT
12
13
#include < sycl/detail/impl_utils.hpp> // for getSyclObjImpl, createSyclObjFromImpl...
13
14
#include < sycl/detail/property_helper.hpp> // for PropertyWith...
Original file line number Diff line number Diff line change 16
16
#include < sycl/detail/kernel_desc.hpp> // for kernel_param_kind_t
17
17
#include < sycl/ext/oneapi/experimental/detail/properties/graph_properties.hpp> // for checkGraphPropertiesAndThrow
18
18
#include < sycl/ext/oneapi/experimental/graph/command_graph.hpp> // for command_graph
19
+ #include < sycl/ext/oneapi/experimental/graph/common.hpp> // for graph_state
19
20
#include < sycl/ext/oneapi/experimental/graph/dynamic.hpp> // for dynamic parameters
20
21
21
22
namespace sycl {
Original file line number Diff line number Diff line change 10
10
11
11
#include < detail/accessor_impl.hpp> // for LocalAccessorImplHost
12
12
#include < sycl/detail/cg_types.hpp> // for CGType
13
- #include < sycl/ext/oneapi/experimental/detail/properties/graph_properties .hpp> // for graph_state
13
+ #include < sycl/ext/oneapi/experimental/graph/common .hpp> // for graph_state
14
14
#include < sycl/ext/oneapi/experimental/raw_kernel_arg.hpp> // for raw_kernel_arg
15
15
16
16
#include < cstring> // for memcpy
Original file line number Diff line number Diff line change 25
25
#include < sycl/detail/string_view.hpp> // for string_view
26
26
#include < sycl/ext/oneapi/experimental/detail/properties/graph_properties.hpp> // for checking graph properties
27
27
#include < sycl/ext/oneapi/experimental/graph/command_graph.hpp> // for command_graph
28
+ #include < sycl/ext/oneapi/experimental/graph/common.hpp> // for graph_state
28
29
#include < sycl/ext/oneapi/experimental/graph/executable_graph.hpp> // for executable_command_graph
29
30
#include < sycl/ext/oneapi/experimental/graph/modifiable_graph.hpp> // for modifiable_command_graph
30
31
#include < sycl/feature_test.hpp> // for testing
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ namespace ext {
40
40
namespace oneapi {
41
41
namespace experimental {
42
42
// Forward declarations
43
+ enum class graph_state ;
43
44
template <graph_state State> class command_graph ;
44
45
45
46
namespace detail {
Original file line number Diff line number Diff line change 115
115
// CHECK-NEXT: ext/oneapi/experimental/event_mode_property.hpp
116
116
// CHECK-NEXT: ext/oneapi/experimental/graph.hpp
117
117
// CHECK-NEXT: ext/oneapi/experimental/graph/command_graph.hpp
118
+ // CHECK-NEXT: ext/oneapi/experimental/graph/common.hpp
118
119
// CHECK-NEXT: ext/oneapi/experimental/graph/executable_graph.hpp
120
+ // CHECK-NEXT: ext/oneapi/experimental/graph/node.hpp
119
121
// CHECK-NEXT: ext/oneapi/experimental/detail/properties/graph_properties.hpp
120
122
// CHECK-NEXT: ext/oneapi/experimental/detail/properties/graph_properties.def
121
123
// CHECK-NEXT: ext/oneapi/experimental/detail/properties/node_properties.def
122
- // CHECK-NEXT: ext/oneapi/experimental/graph/node.hpp
123
124
// CHECK-NEXT: ext/oneapi/experimental/graph/modifiable_graph.hpp
124
125
// CHECK-NEXT: ext/oneapi/experimental/graph/dynamic.hpp
125
126
// CHECK-NEXT: ext/oneapi/experimental/work_group_memory.hpp
You can’t perform that action at this time.
0 commit comments