#include <detail/graph_impl.hpp>
Public Member Functions | |
dynamic_parameter_impl (std::shared_ptr< graph_impl > GraphImpl, size_t ParamSize, const void *Data) | |
void | registerNode (std::shared_ptr< node_impl > NodeImpl, int ArgIndex) |
Register a node with this dynamic parameter. More... | |
void * | getValue () |
Get a pointer to the internal value of this dynamic parameter. More... | |
void | updateValue (const void *NewValue, size_t Size) |
Update the internal value of this dynamic parameter as well as the value of this parameter in all registered nodes. More... | |
void | updateAccessor (const sycl::detail::AccessorBaseHost *Acc) |
Update the internal value of this dynamic parameter as well as the value of this parameter in all registered nodes. More... | |
Public Attributes | |
std::vector< std::pair< std::weak_ptr< node_impl >, int > > | MNodes |
std::shared_ptr< graph_impl > | MGraph |
std::vector< std::byte > | MValueStorage |
Definition at line 1444 of file graph_impl.hpp.
|
inline |
Definition at line 1446 of file graph_impl.hpp.
References MValueStorage.
|
inline |
Get a pointer to the internal value of this dynamic parameter.
Definition at line 1461 of file graph_impl.hpp.
References MValueStorage.
|
inline |
Register a node with this dynamic parameter.
NodeImpl | The node to be registered |
ArgIndex | The arg index for the kernel arg associated with this dynamic_parameter in NodeImpl |
Definition at line 1456 of file graph_impl.hpp.
References MNodes.
|
inline |
Update the internal value of this dynamic parameter as well as the value of this parameter in all registered nodes.
Should only be called for accessor dynamic_parameters.
Acc | The new accessor value |
Definition at line 1481 of file graph_impl.hpp.
References MNodes, and MValueStorage.
|
inline |
Update the internal value of this dynamic parameter as well as the value of this parameter in all registered nodes.
NewValue | Pointer to the new value |
Size | Size of the data pointer to by NewValue |
Definition at line 1467 of file graph_impl.hpp.
References MNodes, and MValueStorage.
std::shared_ptr<graph_impl> sycl::_V1::ext::oneapi::experimental::detail::dynamic_parameter_impl::MGraph |
Definition at line 1496 of file graph_impl.hpp.
std::vector<std::pair<std::weak_ptr<node_impl>, int> > sycl::_V1::ext::oneapi::experimental::detail::dynamic_parameter_impl::MNodes |
Definition at line 1494 of file graph_impl.hpp.
Referenced by registerNode(), updateAccessor(), and updateValue().
std::vector<std::byte> sycl::_V1::ext::oneapi::experimental::detail::dynamic_parameter_impl::MValueStorage |
Definition at line 1497 of file graph_impl.hpp.
Referenced by dynamic_parameter_impl(), getValue(), updateAccessor(), and updateValue().