openPMD-api
|
The report for a single benchmark produced by <openPMD/benchmark/mpi/MPIBenchmark>. More...
#include <MPIBenchmarkReport.hpp>
Public Types | |
enum | Selector { RANK = 0 , COMPRESSION , COMPRESSION_LEVEL , BACKEND , NRANKS , DTYPE , ITERATIONS } |
Public Member Functions | |
MPIBenchmarkReport (MPI_Comm) | |
void | addReport (int rootThread, std::string jsonConfig, std::string extension, int threadSize, Datatype dt, Series::IterationIndex_t iterations, std::pair< Duration, Duration > const &report) |
Add results for a certain compression strategy and level. More... | |
std::pair< Duration, Duration > | getReport (int rank, std::string jsonConfig, std::string extension, int threadSize, Datatype dt, Series::IterationIndex_t iterations) |
Retrieve the time measured for a certain compression strategy. More... | |
Public Attributes | |
MPI_Comm | communicator |
std::map< std::tuple< int, std::string, std::string, int, Datatype, Series::IterationIndex_t >, std::pair< Duration, Duration > > | durations |
Time needed for writing and reading per compression strategy and level. | |
The report for a single benchmark produced by <openPMD/benchmark/mpi/MPIBenchmark>.
Duration | Datatype to be used for storing a time interval. |
void openPMD::MPIBenchmarkReport< Duration >::addReport | ( | int | rootThread, |
std::string | jsonConfig, | ||
std::string | extension, | ||
int | threadSize, | ||
Datatype | dt, | ||
Series::IterationIndex_t | iterations, | ||
std::pair< Duration, Duration > const & | report | ||
) |
Add results for a certain compression strategy and level.
std::pair< Duration, Duration > openPMD::MPIBenchmarkReport< Duration >::getReport | ( | int | rank, |
std::string | jsonConfig, | ||
std::string | extension, | ||
int | threadSize, | ||
Datatype | dt, | ||
Series::IterationIndex_t | iterations | ||
) |
Retrieve the time measured for a certain compression strategy.
rank | Which MPI rank's duration results to retrieve. |
jsonConfig | Compression strategy. |
extension | The openPMD filename extension. |
threadSize | The MPI size. |
dt | The openPMD datatype. |
iterations | The number of iterations per compression strategy. |