NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_mpi_recordstoredistributor.h
Go to the documentation of this file.
1
10#ifndef _BE_MPI_RECORDSTOREDISTRIBUTOR_H
11#define _BE_MPI_RECORDSTOREDISTRIBUTOR_H
12
13#include <be_mpi_distributor.h>
15
16namespace BiometricEvaluation {
17 namespace MPI {
18
31 public:
35 static const std::string CHECKPOINTLASTKEY;
36
40 static const std::string CHECKPOINTNUMKEYS;
41
74 const std::string &propertiesFileName,
75 const bool includeValues);
76
78
79 protected:
80 void
82 void checkpointSave(const std::string &reason);
84
85 private:
86 std::unique_ptr<MPI::RecordStoreResources>
87 _resources;
88 uint64_t _recordsRemaining;
89 bool _includeValues;
90 std::string _lastDistributedKey{};
91 };
92 }
93}
94
95#endif /* _BE_MPI_RECORDSTOREDISTRIBUTOR_H */
96
A class to represent an MPI task that distributes work to other tasks.
An implementation of the MPI::Distrbutor abstraction that uses a record store for input to create the...
static const std::string CHECKPOINTNUMKEYS
The number of keys that were distributed, "Num Keys".
RecordStoreDistributor(const std::string &propertiesFileName, const bool includeValues)
Construct a distributor using the named properties.
static const std::string CHECKPOINTLASTKEY
The last key that was distributed, "Last Key".
void checkpointRestore()
Restore from a checkpoint state.
void createWorkPackage(MPI::WorkPackage &workPackage)
Create a work package for distribution.
void checkpointSave(const std::string &reason)
Create a checkpoint state.
A class to represent a piece of work to be acted upon by a processor.
This software was developed at the National Institute of Standards and Technology (NIST) by employees...