12 #ifndef SST_CORE_CHECKPOINT_ACTION_H 13 #define SST_CORE_CHECKPOINT_ACTION_H 15 #include "sst/core/action.h" 16 #include "sst/core/config.h" 17 #include "sst/core/cputimer.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" 27 class Simulation_impl;
30 namespace Checkpointing {
38 std::string createUniqueDirectory(
const std::string basename);
45 void removeDirectory(
const std::string name);
52 std::string initializeCheckpointInfrastructure(Config* cfg,
bool rt_can_ckpt,
int myRank);
76 SimTime_t
check(SimTime_t current_time);
82 static uint32_t checkpoint_id;
95 double last_cpu_time_;
97 SimTime_t next_sim_time_;
102 #endif // SST_CORE_CHECKPOINT_ACTION_H An Action is a schedulable Activity which is not an Event.
Definition: action.h:26
Class to contain SST Simulation Configuration variables.
Definition: config.h:38
A class to convert between a component's view of time and the core's view of time.
Definition: timeConverter.h:27
A recurring event to trigger checkpoint generation.
Definition: checkpointAction.h:60
SimTime_t getNextCheckpointSimTime()
Return next checkpoint time.
Definition: checkpointAction.cc:212
SimTime_t check(SimTime_t current_time)
Called by SyncManager to check whether a checkpoint should be generated.
Definition: checkpointAction.cc:188
Main control class for a SST Simulation.
Definition: simulation_impl.h:76
Definition: rankInfo.h:21
void setCheckpoint()
Generate a checkpoint next time check() is called.
Definition: checkpointAction.cc:206
Definition: threadsafe.h:47
void execute(void) override
Called by TimeVortex to trigger checkpoint on simulation clock interval - not used in parallel simula...
Definition: checkpointAction.cc:76