Statically scheduled task graph built by a Scheduler.
More...
#include <GREM/execution/Schedule.hpp>
|
| struct | TaskContext |
| | Task context that the scheduled tasks expect to receive a pointer to through their void* context parameter. More...
|
template<typename EntReg, typename ResReg>
class grem::execution::Schedule< EntReg, ResReg >
Statically scheduled task graph built by a Scheduler.
- Template Parameters
-
- See also
- Scheduler
◆ Schedule() [1/2]
template<typename EntReg, typename ResReg>
Construct an empty schedule with an empty name.
- See also
- Scheduler
◆ Schedule() [2/2]
template<typename EntReg, typename ResReg>
Construct a schedule.
- Parameters
-
| tasks | topologically ordered list of scheduled tasks. The tasks must not depend on the results of tasks that appear later in the list. Dependencies between tasks must be specified through Task::getDependencyIndices(), all of which must be less than the index of the dependent task. Each task function must not access its byte* taskSharedMemory parameter outside of the offset interval [0, requiredSharedMemorySize - task.getSharedMemoryOffset()). |
| requiredSharedMemorySize | total amount of contiguous shared memory required by the byte* sharedMemory parameter of Task::execute(). Must be greater than or equal to task.getSharedMemoryOffset() for all tasks. |
| name | UTF-8-encoded human-readable name of the schedule, or an empty string for an unnamed schedule. |
- See also
- Scheduler
◆ getTasks()
template<typename EntReg, typename ResReg>
Get the list of scheduled tasks.
- Returns
- a topologically ordered view over the tasks defined by the schedule.
◆ getRequiredSharedMemorySize()
template<typename EntReg, typename ResReg>
Get the total amount of contiguous shared memory required by the byte* sharedMemory parameter of Task::execute().
- Returns
- the required shared memory size, in bytes.
◆ getName()
template<typename EntReg, typename ResReg>
Get the human-readable name of the schedule.
- Returns
- a UTF-8-encoded string containing the human-readable name of the schedule, or an empty string if the schedule is unnamed.
◆ formatDOTGraph()
template<typename EntReg, typename ResReg>
Build a string representation of the directed acyclic graph formed by the schedule's tasks, and the dependencies between them, in Graphviz DOT format.
- Returns
- a string in the DOT graph description language that can, for example, be saved to a file schedule.gv and visualized using the Graphviz command dot -Tpng -oschedule.png schedule.gv.
The documentation for this class was generated from the following file: