You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -176,182 +174,47 @@ Table 4. Member functions of the `command_graph` class.
176
174
|
177
175
[source,c++]
178
176
----
179
-
node add_node(const std::vector<node>& dep = {});
177
+
node add(const std::vector<node>& dep = {});
180
178
----
181
179
|This creates an empty node which is associated to no task. Its intended use is either a connection point inside a graph between groups of nodes, and can significantly reduce the number of edges ( O(n) vs. O(n^2) ). Another use-case is building the structure of a graph first and adding tasks later.
182
180
183
181
|
184
182
[source,c++]
185
183
----
186
184
template<typename T>
187
-
node add_node(T cgf, const std::vector<node>& dep = {});
185
+
node add(T cgf, const std::vector<node>& dep = {});
188
186
----
189
-
|This node captures a command group function object containing host task which is scheduled by the SYCL runtime or a SYCL function for invoking kernels with all restrictions that apply as described in the spec.
190
-
191
-
|===
192
-
193
-
Memory that is allocated by the following functions is owned by the specific graph. When freed inside the graph, the memory is only accessible before the `free` node is executed and after the `malloc` node is executed.
194
-
195
-
Table 5. Member functions of the `command_graph` class (memory operations).
196
-
[cols="2a,a"]
197
-
|===
198
-
|Member function|Description
187
+
|This function adds a command group function object to a graph. The function object can contain single or multiple commands such as a host task which is scheduled by the SYCL runtime or a SYCL function for invoking kernels with all restrictions that apply as described in the spec.
node single_task(const KernelType &kernelFunc, const std::vector<node>& dep = {});
277
-
----
278
-
|Adding a node that encapsulates a `single_task` operation.
279
-
280
-
|
281
-
[source,c++]
282
-
----
283
-
template <typename KernelName, int Dims, typename... Rest>
284
-
node parallel_for(range<Dims> numWorkItems, Rest&& rest, const std::vector<node>& dep = {});
285
-
----
286
-
|Adding a node that encapsulates a `parallel_for` operation.
287
-
288
-
|
289
-
[source,c++]
290
-
----
291
-
template <typename KernelName, int Dims, typename... Rest>
292
-
node parallel_for(nd_range<Dims> executionRange, Rest&& rest, const std::vector<node>& dep = {});
293
-
----
294
-
|Adding a node that encapsulates a `parallel_for` operation.
295
-
296
-
// |===
297
-
//
298
-
// Table 7. Helper functions of the `graph` class.
299
-
// [cols="a,a"]
300
-
// |===
301
-
// |Function name|Description
302
-
//
303
-
// |
304
-
// [source,c++]
305
-
// ----
306
-
// graph<graph_state::modifiable> make_graph();
307
-
// ----
308
-
// |Creates a `graph` object in the `graph_state::modifiable` state.
309
-
310
-
|===
311
-
312
-
=== Node member functions
313
-
314
-
Table 8. Constructor of the `node` class.
315
-
[cols="a,a"]
316
196
|===
317
-
|Constructor|Description
318
-
319
-
|
320
-
[source,c++]
321
-
----
322
-
node();
323
-
----
324
-
|Creates an empty `node` object. That encapsulates no tasks and is not assigned to a graph. Prior to execution it has to be assigned to a graph.
325
197
326
-
|===
198
+
Memory that is allocated by the following functions is owned by the specific graph. When freed inside the graph, the memory is only accessible before the `free` node is executed and after the `malloc` node is executed.
327
199
328
-
Table 9. Member functions of the `node` class.
200
+
Table 5. Member functions of the `command_graph` class (memory operations).
0 commit comments