Graph Framework
|
Class representing a workitem. More...
#include <workflow.hpp>
Public Member Functions | |
work_item (graph::input_nodes< T, SAFE_MATH > in, graph::output_nodes< T, SAFE_MATH > out, graph::map_nodes< T, SAFE_MATH > maps, graph::shared_random_state< T, SAFE_MATH > state, const std::string name, const size_t size, jit::context< T, SAFE_MATH > &context) | |
Construct a workflow item. | |
virtual void | create_kernel_call (jit::context< T, SAFE_MATH > &context) |
Set the kernel function. | |
virtual void | run () |
Run the workitem. | |
Protected Attributes | |
const std::string | kernel_name |
Name of the GPU kernel. | |
const size_t | kernel_size |
Name of the GPU kernel. | |
graph::input_nodes< T, SAFE_MATH > | inputs |
Input nodes. | |
graph::output_nodes< T, SAFE_MATH > | outputs |
Output nodes. | |
graph::shared_random_state< T, SAFE_MATH > | state |
Random state node. | |
std::function< void(void)> | kernel |
Kernel function. | |
Class representing a workitem.
T | Base type of the calculation. |
SAFE_MATH | Use Safe Math operations. |
|
inline |
Construct a workflow item.
[in] | in | Input variables. |
[in] | out | Output nodes. |
[in] | maps | Setter maps. |
[in] | state | Random state node. |
[in] | name | Name of the workitem. |
[in] | size | Size of the workitem. |
[in,out] | context | Jit context. |
|
inlinevirtual |
Set the kernel function.
[in,out] | context | Jit context. |
Reimplemented in workflow::converge_item< T, SAFE_MATH >.
|
inlinevirtual |
Run the workitem.
Reimplemented in workflow::converge_item< T, SAFE_MATH >.