seapodym-parallel
Fish dynamics models with parameter estimations
|
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 |
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
TaskManager::TaskManager | ( | MPI_Comm | comm, |
int | numTasks ) |
Constructor
comm | communicator |
numTasks | number of tasks |
std::map< int, int > TaskManager::run | ( | ) | const |
Run the manager