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 compression, uint8_t level, std::string extension, int threadSize, Datatype dt, typename decltype(Series::iterations)::key_type 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 compression, uint8_t level, std::string extension, int threadSize, Datatype dt, typename decltype(Series::iterations)::key_type iterations) |
Retrieve the time measured for a certain compression strategy. More... | |
Public Attributes | |
MPI_Comm | communicator |
std::map< std::tuple< int, std::string, uint8_t, std::string, int, Datatype, typename decltype(Series::iterations)::key_type >, 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 | compression, | ||
uint8_t | level, | ||
std::string | extension, | ||
int | threadSize, | ||
Datatype | dt, | ||
typename decltype(Series::iterations)::key_type | iterations, | ||
std::pair< Duration, Duration > const & | report | ||
) |
Add results for a certain compression strategy and level.
rootThread | The MPI rank which will collect the data. |
compression | Compression strategy. |
level | Compression level |
extension | The openPMD filename extension. |
threadSize | The MPI size. |
dt | The openPMD datatype. |
iterations | The number of iterations per compression strategy. |
report | A pair of write and read time measurements. |
std::pair< Duration, Duration > openPMD::MPIBenchmarkReport< Duration >::getReport | ( | int | rank, |
std::string | compression, | ||
uint8_t | level, | ||
std::string | extension, | ||
int | threadSize, | ||
Datatype | dt, | ||
typename decltype(Series::iterations)::key_type | iterations | ||
) |
Retrieve the time measured for a certain compression strategy.
rank | Which MPI rank's duration results to retrieve. |
compression | Compression strategy. |
level | Compression level |
extension | The openPMD filename extension. |
threadSize | The MPI size. |
dt | The openPMD datatype. |
iterations | The number of iterations per compression strategy. |