|
seapodym-parallel
Fish dynamics models with parameter estimations
|
The TaskStepManager orchestrates tasks that depend on other tasks' steps. Use this in conjunction with TaskStepWorker. More...
#include <TaskStepManager.h>
Public Member Functions | |
| TaskStepManager (MPI_Comm comm, int numTasks, const std::map< int, int > &stepBegMap, const std::map< int, int > &stepEndMap, const std::map< int, std::set< dep_type > > &dependencyMap) | |
| std::set< std::array< int, 3 > > | run () const |
The TaskStepManager orchestrates tasks that depend on other tasks' steps. Use this in conjunction with TaskStepWorker.
| TaskStepManager::TaskStepManager | ( | MPI_Comm | comm, |
| int | numTasks, | ||
| const std::map< int, int > & | stepBegMap, | ||
| const std::map< int, int > & | stepEndMap, | ||
| const std::map< int, std::set< dep_type > > & | dependencyMap ) |
Constructor
| comm | communicator |
| numTasks | number of tasks |
| stepBegMap | taskId -> first step map |
| stepEndMap | taskId -> last step + 1 map |
| dependencyMap | map of task dependencies {taskId: {taskId, step}, ...} |
| std::set< std::array< int, 3 > > TaskStepManager::run | ( | ) | const |
Run the manager