SST
14.1.0
StructuralSimulationToolkit
|
Forms the base class for statistics output generation within the SST core. More...
#include <statoutput.h>
Public Types | |
using | fieldType_t = StatisticFieldInfo::fieldType_t |
using | fieldHandle_t = StatisticFieldInfo::fieldHandle_t |
using | FieldInfoArray_t = std::vector< StatisticFieldInfo * > |
using | FieldNameMap_t = std::unordered_map< std::string, fieldHandle_t > |
Public Member Functions | |
std::string & | getStatisticOutputName () |
Return the Statistic Output name. | |
Params & | getOutputParameters () |
Return the parameters for the StatisticOutput. | |
virtual bool | acceptsGroups () const |
True if this StatOutput can handle StatisticGroups. | |
virtual void | output (StatisticBase *statistic, bool endOfSimFlag)=0 |
virtual bool | supportsDynamicRegistration () const |
void | serialize_order (SST::Core::Serialization::serializer &ser) override |
ImplementVirtualSerializable (SST::Statistics::StatisticOutput) public | |
Public Member Functions inherited from SST::Core::Serialization::serializable_base | |
virtual const char * | cls_name () const =0 |
virtual uint32_t | cls_id () const =0 |
virtual std::string | serialization_name () const =0 |
Protected Member Functions | |
virtual bool | checkOutputParameters ()=0 |
Have the Statistic Output check its parameters. More... | |
virtual void | printUsage ()=0 |
Have Statistic Object print out its usage and parameter info. More... | |
virtual void | startOfSimulation ()=0 |
Indicate to Statistic Output that simulation has started. More... | |
virtual void | endOfSimulation ()=0 |
Indicate to Statistic Output that simulation has ended. More... | |
Output & | getSimulationOutput () |
Gets the Output object for the Simulation object associeted with this StatOutput. More... | |
RankInfo | getNumRanks () |
Gets the number of ranks for the simulation. | |
RankInfo | getRank () |
Gets the Rank (MPI rank and thread) that this StatisticOutput is associated with. More... | |
SimTime_t | getCurrentSimCycle () |
Gets the current simulstion cycle. | |
StatisticOutput (Params &outputParameters) | |
Construct a base StatisticOutput. More... | |
void | setStatisticOutputName (const std::string &name) |
void | lock () |
void | unlock () |
Friends | |
class | SST::Simulation |
class | SST::Statistics::StatisticProcessingEngine |
Additional Inherited Members | |
Static Public Attributes inherited from SST::Core::Serialization::serializable | |
static constexpr uint32_t | NullClsId = std::numeric_limits<uint32_t>::max() |
Static Public Attributes inherited from SST::Core::Serialization::serializable_base | |
static constexpr uint32_t | NullClsId = std::numeric_limits<uint32_t>::max() |
Protected Types inherited from SST::Core::Serialization::serializable_base | |
enum | cxn_flag_t { ConstructorFlag } |
Static Protected Member Functions inherited from SST::Core::Serialization::serializable_base | |
static void | serializable_abort (uint32_t line, const char *file, const char *func, const char *obj) |
Forms the base class for statistics output generation within the SST core.
Statistics are gathered by the statistic objects and then processed sent to the derived output object either periodically or by event and/or also at the end of the simulation. A single statistic output will be created by the simulation (per node) and will collect the data per its design.
|
protected |
Construct a base StatisticOutput.
outputParameters | - The parameters for the statistic Output. |
|
protectedpure virtual |
|
protectedpure virtual |
Indicate to Statistic Output that simulation has ended.
Allows object to perform any shutdown required.
Implemented in SST::Statistics::StatisticOutputHDF5, SST::Statistics::StatisticOutputCSV, SST::Statistics::StatisticOutputJSON, and SST::Statistics::StatisticOutputTextBase.
|
protected |
Gets the Rank (MPI rank and thread) that this StatisticOutput is associated with.
References SST::Simulation_impl::getRank(), and SST::Simulation_impl::getSimulation().
Referenced by SST::Statistics::StatisticOutputTextBase::implStartOutputEntries(), SST::Statistics::StatisticOutputCSV::implStopOutputEntries(), SST::Statistics::StatisticOutputTextBase::startOfSimulation(), SST::Statistics::StatisticOutputJSON::startOfSimulation(), and SST::Statistics::StatisticOutputCSV::startOfSimulation().
|
protected |
Gets the Output object for the Simulation object associeted with this StatOutput.
References SST::Simulation_impl::getSimulationOutput().
|
protectedpure virtual |
Have Statistic Object print out its usage and parameter info.
Called when checkOutputParameters() returns false
Implemented in SST::Statistics::StatisticOutputHDF5, SST::Statistics::StatisticOutputCSV, SST::Statistics::StatisticOutputJSON, and SST::Statistics::StatisticOutputTextBase.
|
protectedpure virtual |
Indicate to Statistic Output that simulation has started.
Allows object to perform any setup required.
Implemented in SST::Statistics::StatisticOutputHDF5, SST::Statistics::StatisticOutputCSV, SST::Statistics::StatisticOutputJSON, and SST::Statistics::StatisticOutputTextBase.