#include <sycl/ext/oneapi/experimental/graph.hpp>
Definition at line 218 of file graph.hpp.
◆ modifiable_command_graph() [1/3]
sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::modifiable_command_graph |
( |
const context & |
SyclContext, |
|
|
const device & |
SyclDevice, |
|
|
const property_list & |
PropList = {} |
|
) |
| |
Constructor.
- Parameters
-
SyclContext | Context to use for graph. |
SyclDevice | Device all nodes will be associated with. |
PropList | Optional list of properties to pass. |
◆ modifiable_command_graph() [2/3]
sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::modifiable_command_graph |
( |
const queue & |
SyclQueue, |
|
|
const property_list & |
PropList = {} |
|
) |
| |
Constructor.
- Parameters
-
SyclQueue | Queue to use for the graph device and context. |
PropList | Optional list of properties to pass. |
◆ modifiable_command_graph() [3/3]
sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::modifiable_command_graph |
( |
const std::shared_ptr< detail::graph_impl > & |
Impl | ) |
|
|
inlineprotected |
Constructor used internally by the runtime.
- Parameters
-
Impl | Detail implementation class to construct object with. |
Definition at line 328 of file graph.hpp.
◆ add() [1/2]
node sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::add |
( |
const property_list & |
PropList = {} | ) |
|
|
inline |
Add an empty node to the graph.
- Parameters
-
PropList | Property list used to pass [0..n] predecessor nodes. |
- Returns
- Constructed empty node which has been added to the graph.
Definition at line 236 of file graph.hpp.
◆ add() [2/2]
template<typename T >
node sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::add |
( |
T |
CGF, |
|
|
const property_list & |
PropList = {} |
|
) |
| |
|
inline |
Add a command-group node to the graph.
- Parameters
-
CGF | Command-group function to create node with. |
PropList | Property list used to pass [0..n] predecessor nodes. |
- Returns
- Constructed node which has been added to the graph.
Definition at line 256 of file graph.hpp.
◆ addGraphLeafDependencies()
void sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::addGraphLeafDependencies |
( |
node |
Node | ) |
|
|
protected |
◆ addImpl() [1/2]
node sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::addImpl |
( |
const std::vector< node > & |
Dep | ) |
|
|
protected |
◆ addImpl() [2/2]
node sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::addImpl |
( |
std::function< void(handler &)> |
CGF, |
|
|
const std::vector< node > & |
Dep |
|
) |
| |
|
protected |
◆ begin_recording() [1/2]
void sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::begin_recording |
( |
const std::vector< queue > & |
RecordingQueues, |
|
|
const property_list & |
PropList = {} |
|
) |
| |
Change the state of multiple queues to be recording and associate this graph with each of them.
- Parameters
-
RecordingQueues | The queues to change state on and associate this graph with. |
PropList | Property list used to pass properties for recording. |
◆ begin_recording() [2/2]
void sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::begin_recording |
( |
queue & |
RecordingQueue, |
|
|
const property_list & |
PropList = {} |
|
) |
| |
Change the state of a queue to be recording and associate this graph with it.
- Parameters
-
RecordingQueue | The queue to change state on and associate this graph with. |
PropList | Property list used to pass properties for recording. |
◆ end_recording() [1/3]
void sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::end_recording |
( |
| ) |
|
◆ end_recording() [2/3]
void sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::end_recording |
( |
const std::vector< queue > & |
RecordingQueues | ) |
|
Set multiple queues currently recording to this graph to the executing state.
- Parameters
-
RecordingQueues | The queues to change state on. |
Definition at line 1642 of file graph_impl.cpp.
References end_recording().
◆ end_recording() [3/3]
void sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::end_recording |
( |
queue & |
RecordingQueue | ) |
|
◆ finalize()
Finalize modifiable graph into an executable graph.
- Parameters
-
PropList | Property list used to pass properties for finalization. |
- Returns
- Executable graph object.
Definition at line 1578 of file graph_impl.cpp.
References impl.
◆ get_nodes()
std::vector< node > sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::get_nodes |
( |
| ) |
const |
Get a list of all nodes contained in this graph.
Definition at line 1661 of file graph_impl.cpp.
References impl.
◆ get_root_nodes()
std::vector< node > sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::get_root_nodes |
( |
| ) |
const |
◆ make_edge()
void sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::make_edge |
( |
node & |
Src, |
|
|
node & |
Dest |
|
) |
| |
◆ print_graph()
void sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::print_graph |
( |
const std::string |
path, |
|
|
bool |
verbose = false |
|
) |
| const |
Synchronous operation that writes a DOT formatted description of the graph to the provided path.
By default, this includes the graph topology, node types, node id and kernel names.
- Parameters
-
path | The path to write the DOT file to. |
verbose | If true, print additional information about the nodes such as kernel args or memory access where applicable. |
Definition at line 1649 of file graph_impl.cpp.
References impl, and sycl::_V1::invalid.
◆ sycl::detail::getSyclObjImpl()
template<class Obj >
frienddecltype(Obj::impl) const& sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::sycl::detail::getSyclObjImpl |
( |
const Obj & |
SyclObject | ) |
|
|
protected |
◆ sycl::detail::createSyclObjFromImpl
template<class T >
T sycl::detail::createSyclObjFromImpl |
( |
decltype(T::impl) |
ImplObj | ) |
|
|
friend |
◆ impl
std::shared_ptr<detail::graph_impl> sycl::_V1::ext::oneapi::experimental::detail::modifiable_command_graph::impl |
|
protected |
The documentation for this class was generated from the following files: