seapodym-parallel
Fish dynamics models with parameter estimations
Loading...
Searching...
No Matches
TaskStepManager Class Reference

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

Detailed Description

The TaskStepManager orchestrates tasks that depend on other tasks' steps. Use this in conjunction with TaskStepWorker.

See also
TaskStepWorker

Constructor & Destructor Documentation

◆ TaskStepManager()

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

Parameters
commcommunicator
numTasksnumber of tasks
stepBegMaptaskId -> first step map
stepEndMaptaskId -> last step + 1 map
dependencyMapmap of task dependencies {taskId: {taskId, step}, ...}

Member Function Documentation

◆ run()

std::set< std::array< int, 3 > > TaskStepManager::run ( ) const

Run the manager

Returns
(taskId, step, result) tuples for each task

The documentation for this class was generated from the following files: