NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
|
Runtime support for the startup/shutdown of MPI jobs. More...
#include <be_mpi_runtime.h>
Public Member Functions | |
Runtime (int &argc, char **&argv, bool checkpointEnable=false) | |
Construct the runtime environment for the processes making up the MPI job. More... | |
~Runtime () | |
void | start (BiometricEvaluation::MPI::Distributor &distributor, BiometricEvaluation::MPI::Receiver &receiver) |
Startup the runtime environment for the MPI job. More... | |
void | shutdown () |
Shutdown the runtime environment for the MPI job. More... | |
void | abort (int errcode) |
Abort the runtime the MPI job. More... | |
Runtime support for the startup/shutdown of MPI jobs.
This class provides methods that are used by applications to start and shutdown the MPI job. Each job consists of a single distributor of work, and 1..n receivers of work which then distribute the work packages to child processes to take action on the work package.
Definition at line 39 of file be_mpi_runtime.h.
BiometricEvaluation::MPI::Runtime::Runtime | ( | int & | argc, |
char **& | argv, | ||
bool | checkpointEnable = false |
||
) |
Construct the runtime environment for the processes making up the MPI job.
Whether to save a checkpoint on clean shutdown, and recover a checkpoint on startup, is optionally specified.
[in] | argc | The argument count, taken from the command line passed to main(). |
[in] | argv | The argument vector, taken from the command line passed to main(). |
[in] | checkpointEnable | True indicates that a checkpoint should be saved on early shutdown and restored on startup, if the checkpoint data is present.. Checkpoints are implementation-defined by the Distributor classes. |
BiometricEvaluation::MPI::Runtime::~Runtime | ( | ) |
void BiometricEvaluation::MPI::Runtime::start | ( | BiometricEvaluation::MPI::Distributor & | distributor, |
BiometricEvaluation::MPI::Receiver & | receiver | ||
) |
Startup the runtime environment for the MPI job.
Exceptions thrown by the Distributor or Recevier are caught and logged.
[in] | distributor | The Distributor object that will form the basis of the first MPI task. |
[in] | receiver | The Receiver object which will form the basis of MPI tasks 1..n. |
void BiometricEvaluation::MPI::Runtime::shutdown | ( | ) |
void BiometricEvaluation::MPI::Runtime::abort | ( | int | errcode | ) |