The Taskscore assigns tasks to TaskWorkers.
More...
#include <TaskScore.h>
|
enum | Status { PENDING = -1
, RUNNING = -2
, SUCCEEDED = -3
, FAILED = -4
} |
The Taskscore assigns tasks to TaskWorkers.
Class Taskscore
◆ TaskScore()
TaskScore::TaskScore |
( |
MPI_Comm | comm, |
|
|
int | numTasks ) |
Constructor
- Parameters
-
comm | communicator |
numTasks | number of tasks |
◆ ~TaskScore()
TaskScore::~TaskScore |
( |
| ) |
|
|
inline |
◆ free()
◆ get()
std::set< int > TaskScore::get |
( |
int | status | ) |
const |
Get the IDs of the tasks with status condition
- Parameters
-
status | one of PENDING, RUNNING, SUCCEEDED or FAILED |
- Returns
- set of IDs
◆ print()
void TaskScore::print |
( |
| ) |
const |
◆ store()
void TaskScore::store |
( |
int | taskId, |
|
|
int | status ) |
Store a score
- Parameters
-
taskInd | task Id |
status | one of PENDING, RUNNING, SUCCEEDED or FAILED |
- Note
- this should be called by the remote process
The documentation for this class was generated from the following files: