simulationCheckpoint
void simulationCheckpoint();
Causes the local thread/rank to checkpoint its state. It is critical that any action calling this function also override canInitiateCheckpoint()
to return true
.
Parameters
- returns none
Example
void
CheckpointRealTImeAction::execute()
{
Output sim_output = getSimulationOutput();
RankInfo rank = getRank();
sim_output.output(
"Creating checkpoint at simulated time %s (rank=%u, thread=%u).\n",
getElapsedSimTime().to_stringBestSI().c_str(), rank.rank, rank.thread);
simulationCheckpoint();
}
Header
#include <sst/core/realtimeAction.h>