12#ifndef SST_CORE_INTERACTIVE_CONSOLE_H
13#define SST_CORE_INTERACTIVE_CONSOLE_H
15#include "sst/core/action.h"
16#include "sst/core/cputimer.h"
17#include "sst/core/eli/elementinfo.h"
18#include "sst/core/output.h"
19#include "sst/core/rankInfo.h"
20#include "sst/core/sst_types.h"
21#include "sst/core/threadsafe.h"
22#include "sst/core/timeConverter.h"
23#include "sst/core/unitAlgebra.h"
35namespace Interactive {
45class InteractiveConsole
49 SST_ELI_DECLARE_BASE(InteractiveConsole)
58 InteractiveConsole() = default;
59 virtual ~InteractiveConsole() = default;
64 virtual int execute(
const std::string& msg) = 0;
131 void simulationShutdown();
134 InteractiveConsole(
const InteractiveConsole&) =
delete;
135 InteractiveConsole& operator=(
const InteractiveConsole&) =
delete;
140#ifndef SST_ELI_REGISTER_INTERACTIVE_CONSOLE
141#define SST_ELI_REGISTER_INTERACTIVE_CONSOLE(cls, lib, name, version, desc) \
142 SST_ELI_REGISTER_DERIVED(SST::InteractiveConsole,cls,lib,name,ELI_FORWARD_AS_ONE(version),desc)
Base class for objects created by the serializer mapping mode used to map the variables for objects.
Definition objectMap.h:188
Output & getSimulationOutput() const
Return the base simulation Output class instance.
Definition interactiveConsole.cc:72
RankInfo getRank() const
Get this instance's parallel rank.
Definition interactiveConsole.cc:60
virtual void summary()=0
Called by SyncManager to get summary info for each thread.
UnitAlgebra getEndSimTime() const
Return the end simulation time as a time.
Definition interactiveConsole.cc:54
void getComponentList(std::vector< std::pair< std::string, SST::Component * > > &vec)
Get the list of Components.
void simulationRun(SimTime_t time)
Runs the simulation the specified number of core time base units.
ICretcode
Interactive Console execute return codes: Positive number is thread ID to switch to,...
Definition interactiveConsole.h:62
UnitAlgebra getElapsedSimTime() const
Return the elapsed simulation time as a time.
Definition interactiveConsole.cc:42
void schedule_interactive(SimTime_t time_offset, const std::string &msg)
Schedules the action for execution at the current simulation time plus time_offset.
Definition interactiveConsole.cc:102
virtual int execute(const std::string &msg)=0
Called by TimeVortex to trigger checkpoint on simulation clock interval - not used in parallel simula...
uint64_t getTimeVortexMaxDepth() const
Return the max depth of the TimeVortex.
Definition interactiveConsole.cc:78
SST_ELI_DECLARE_INFO_EXTERN(ELI::ProvidesParams) InteractiveConsole()=default
Create a new checkpoint object for the simulation core to initiate checkpoints.
RankInfo getNumRanks() const
Get the number of parallel ranks in the simulation.
Definition interactiveConsole.cc:66
SimTime_t getCurrentSimCycle() const
Return the current simulation time as a cycle count.
Definition interactiveConsole.cc:36
UnitAlgebra getCoreTimeBase() const
Get the core timebase.
Definition interactiveConsole.cc:30
uint64_t getSyncQueueDataSize() const
Return the size of the SyncQueue - per-rank.
Definition interactiveConsole.cc:90
SimTime_t getEndSimCycle() const
Return the end simulation time as a cycle count.
Definition interactiveConsole.cc:48
TimeConverter getTimeConverter(const std::string &time)
Get a TimeConverter.
Definition interactiveConsole.cc:96
void getMemPoolUsage(int64_t &bytes, int64_t &active_entries)
Return MemPool usage information - per-rank.
Definition interactiveConsole.cc:84
Output object provides consistent method for outputting data to stdout, stderr and/or sst debug file.
Definition output.h:58
Parameter store.
Definition params.h:65
Main control class for a SST Simulation.
Definition simulation.h:121
A class to convert between a component's view of time and the core's view of time.
Definition timeConverter.h:31
Performs Unit math in full precision.
Definition unitAlgebra.h:107