NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_mpi_runtime.h
Go to the documentation of this file.
1
10#ifndef _BE_MPI_RUNTIME_H
11#define _BE_MPI_RUNTIME_H
12
13#include <string>
14
15#include <be_mpi.h>
16#include <be_mpi_distributor.h>
17#include <be_mpi_receiver.h>
18
19namespace BiometricEvaluation {
20 namespace MPI {
21
22 extern bool Exit; /* Exit signal was received */
23 extern bool QuickExit; /* Quick exit signal received */
24 extern bool TermExit; /* Immediate exit signal received */
25
26 extern bool checkpointEnable;
27 extern bool doCheckpointRestore;
28
39 class Runtime {
40 public:
62 int &argc,
63 char** &argv,
64 bool checkpointEnable = false);
65
67
81 void start(
84
92 void shutdown();
93
105 void abort(int errcode);
106
107 private:
108 int _argc;
109 char **_argv;
110 };
111 }
112}
113
114#endif /* _BE_MPI_RUNTIME_H */
115
A class to represent an MPI task that distributes work to other tasks.
A class to represent an MPI task that receives WorkPackages containers from the Distributor.
Runtime support for the startup/shutdown of MPI jobs.
Runtime(int &argc, char **&argv, bool checkpointEnable=false)
Construct the runtime environment for the processes making up the MPI job.
void abort(int errcode)
Abort the runtime the MPI job.
void shutdown()
Shutdown the runtime environment for the MPI job.
void start(BiometricEvaluation::MPI::Distributor &distributor, BiometricEvaluation::MPI::Receiver &receiver)
Startup the runtime environment for the MPI job.
This software was developed at the National Institute of Standards and Technology (NIST) by employees...