20#include <unordered_map>
24namespace kamping::measurements {
49 case GlobalAggregationMode::min:
51 case GlobalAggregationMode::max:
53 case GlobalAggregationMode::sum:
55 case GlobalAggregationMode::gather:
58 return "No name string is specified for given mode.";
STL-compatible allocator for requesting memory using the builtin MPI allocator.
Definition allocator.hpp:32
std::string get_string(GlobalAggregationMode mode)
Returns name of given GlobalAggregationMode.
Definition measurement_aggregation_definitions.hpp:47
std::variant< T, std::vector< T > > ScalarOrContainer
Either a scalar or vector of type T.
Definition measurement_aggregation_definitions.hpp:28
GlobalAggregationMode
Enum to specify how time durations with same key shall be aggregated across the participating ranks.
Definition measurement_aggregation_definitions.hpp:37
@ sum
The sum of the measurement data on the participating ranks will be computed.
@ gather
The measurement data on the participating ranks will be collected in a container.
LocalAggregationMode
Enum to specify how time measurements with same key shall be aggregated locally.
Definition measurement_aggregation_definitions.hpp:31
@ accumulate
Tag used to indicate that data associated with identical keys will be accumulated into a scalar.
@ append
Tag used to indicate that data with identical keys will not be accumulated and stored in a list.