12#ifndef SST_CORE_SYNC_RANKSYNCSERIALSKIP_H
13#define SST_CORE_SYNC_RANKSYNCSERIALSKIP_H
15#include "sst/core/sst_types.h"
16#include "sst/core/sync/syncManager.h"
17#include "sst/core/threadsafe.h"
43 void execute(
int thread)
override;
53 void setSignals(
int end,
int usr,
int alrm)
override;
55 bool getSignals(
int& end,
int& usr,
int& alrm)
override;
59 void setShutdownFlags(
bool enter_shutdown, Simulation::ShutdownMode_t shutdown_mode)
override;
60 void setCkptFlag(
bool generate_ckpt)
override;
61 void setFlags(
bool enter_interactive,
bool enter_shutdown, Simulation::ShutdownMode_t shutdown_mode)
override;
63 void getShutdownFlags(
bool& enter_shutdown, Simulation::ShutdownMode_t& shutdown_mode)
override;
64 void getCkptFlag(
bool& generate_ckpt)
override;
65 void getFlags(
bool& enter_interactive,
bool& enter_shutdown, Simulation::ShutdownMode_t& shutdown_mode)
override;
69 SimTime_t getNextSyncTime()
override {
return myNextSyncTime; }
71 void setRestartTime(SimTime_t time)
override;
73 uint64_t getDataSize()
const override;
78 static SimTime_t myNextSyncTime;
91 ImplementSerializable(comm_pair)
94 using comm_map_t = std::map<int, comm_pair>;
95 using link_map_t = std::map<std::string, uintptr_t>;
102 double deserializeTime;
109 static int sig_alrm_;
110 static std::atomic<bool> enter_interactive_;
111 static std::atomic<bool> enter_shutdown_;
112 static std::atomic<unsigned> shutdown_mode_;
113 static std::atomic<bool> generate_ckpt_;
Base Class for a queue of Activities.
Definition activityQueue.h:22
Definition serializable.h:25
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition serializer.h:43
Definition threadsafe.h:138
Link between two components.
Definition link.h:57
Definition syncQueue.h:62
void setShutdownFlags(bool enter_shutdown, Simulation::ShutdownMode_t shutdown_mode) override
Set interactive flags to exchange during sync.
Definition rankSyncSerialSkip.cc:127
void setSignals(int end, int usr, int alrm) override
Set signals to exchange during sync.
Definition rankSyncSerialSkip.cc:110
void prepareForComplete() override
Prepare for the complete() stage.
Definition rankSyncSerialSkip.cc:106
bool getSignals(int &end, int &usr, int &alrm) override
Return exchanged signals after sync.
Definition rankSyncSerialSkip.cc:118
void clearFlags() override
Clear interactive flags before next run.
Definition rankSyncSerialSkip.cc:182
void finalizeLinkConfigurations() override
Finish link configuration.
Definition rankSyncSerialSkip.cc:102
void exchangeLinkUntimedData(int thread, std::atomic< int > &msg_count) override
Cause an exchange of Untimed Data to occur.
Definition rankSyncSerialSkip.cc:346
ActivityQueue * registerLink(const RankInfo &to_rank, const RankInfo &from_rank, Link *link) override
Register a Link which this Sync Object is responsible for.
Definition rankSyncSerialSkip.cc:70
RankSyncSerialSkip(RankInfo num_ranks)
Create a new Sync object which fires with a specified period.
Definition rankSyncSerialSkip.cc:48
void getShutdownFlags(bool &enter_shutdown, Simulation::ShutdownMode_t &shutdown_mode) override
Return exchanged interactive flags after sync.
Definition rankSyncSerialSkip.cc:152
A class to convert between a component's view of time and the core's view of time.
Definition timeConverter.h:31