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

The TaskManager assigns tasks to TaskWorkers. In this simple version of task farming, there are no dependencies between tasks. Use this in conjunction with TaskWorker when the tasks can be performed in any order. More...

#include <TaskManager.h>

Public Member Functions

 TaskManager (MPI_Comm comm, int numTasks)
std::map< int, int > run () const

Detailed Description

The TaskManager assigns tasks to TaskWorkers. In this simple version of task farming, there are no dependencies between tasks. Use this in conjunction with TaskWorker when the tasks can be performed in any order.

Class TaskManager

See also
TaskWorker

Constructor & Destructor Documentation

◆ TaskManager()

TaskManager::TaskManager ( MPI_Comm comm,
int numTasks )

Constructor

Parameters
commcommunicator
numTasksnumber of tasks

Member Function Documentation

◆ run()

std::map< int, int > TaskManager::run ( ) const

Run the manager

Returns
results of each task

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