12 #ifndef SST_CORE_LINK_H 13 #define SST_CORE_LINK_H 15 #include "sst/core/event.h" 16 #include "sst/core/serialization/serialize_impl_fwd.h" 17 #include "sst/core/sst_types.h" 18 #include "sst/core/timeConverter.h" 22 #define _LINK_DBG(fmt, args...) __DBG(DBG_LINK, Link, fmt, ##args) 28 class Simulation_impl;
31 class LinkSendProfileToolList;
34 class EventHandlerProfileTool;
53 enum Type_t : uint16_t { POLL, HANDLER, SYNC, UNINITIALIZED };
54 enum Mode_t : uint16_t { INIT, RUN, COMPLETE };
177 #ifdef __SST_DEBUG_EVENT_TRACKING__ 178 void setSendingComponentInfo(
const std::string& comp_in,
const std::string& type_in,
const std::string& port_in)
185 const std::string& getSendingComponentName() {
return comp; }
186 const std::string& getSendingComponentType() {
return ctype; }
187 const std::string& getSendingPort() {
return port; }
194 void setAsSyncLink() { type = SYNC; }
250 SimTime_t& current_time;
278 void setLatency(Cycle_t lat);
280 void sendUntimedData_sync(
Event* data);
281 void finalizeConfiguration();
282 void prepareForComplete();
285 createUniqueGlobalLinkName(
RankInfo local_rank, uintptr_t local_ptr,
RankInfo remote_rank, uintptr_t remote_ptr);
294 #ifdef __SST_DEBUG_EVENT_TRACKING__ 315 #endif // SST_CORE_LINK_H This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:43
Definition: syncManager.h:130
Handlers with 1 handler defined argument to callback from caller.
Definition: ssthandler.h:210
Self Links are links from a component to itself.
Definition: link.h:302
A class to convert between a component's view of time and the core's view of time.
Definition: timeConverter.h:27
Definition: syncManager.h:39
bool isConfigured()
Return whether link has been configured.
Definition: link.h:175
void setDeliveryInfo(uintptr_t info)
Set the delivery_info for the link.
Definition: link.h:199
void addRecvLatency(int cycles, const std::string &timebase)
Set additional Latency to be added on to events coming in on this link.
Definition: link.cc:599
void sendUntimedData(Event *data)
Send data during the init() or complete() phase.
Definition: link.cc:694
Base serialize class.
Definition: serialize.h:45
void send(SimTime_t delay, TimeConverter *tc, Event *event)
Send an event over the link with additional delay.
Definition: link.h:113
SimTime_t latency
Latency of the link.
Definition: link.h:242
LinkId_t getId()
Return the ID of this link.
Definition: link.h:159
SimTime_t defaultTimeBase
Timebase used if no other timebase is specified.
Definition: link.h:236
void replaceFunctor(Event::HandlerBase *functor)
Replace the callback function to be called when a message is delivered.
Definition: link.cc:624
void addSendLatency(int cycles, const std::string &timebase)
Set additional Latency to be added to events being sent out of this link.
Definition: link.cc:586
Link * pair_link
Pointer to the opposite side of this link.
Definition: link.h:245
Definition: syncManager.h:87
Event * recv()
Retrieve a pending event from the Link.
Definition: link.cc:672
Event * recvUntimedData()
Receive an event (if any) during the init() or complete() phase.
Definition: link.cc:724
Serialization "gateway" object.
Definition: serialize.h:133
void setFunctor(Event::HandlerBase *functor)
Set the callback function to be called when a message is delivered.
Definition: link.cc:612
void send_impl(SimTime_t delay, Event *event)
Send an event over the link with additional delay.
Definition: link.cc:641
Main control class for a SST Simulation.
Definition: simulation_impl.h:76
Definition: rankInfo.h:21
void setDefaultTimeBase(TimeConverter *tc)
Manually set the default detaulTimeBase.
Definition: link.cc:740
Main component object for the simulation.
Definition: baseComponent.h:62
Defines a pair of links (to define a connected link)
Definition: linkPair.h:23
void send(SimTime_t delay, Event *event)
Send an event with additional delay.
Definition: link.h:124
uintptr_t delivery_info
Holds the delivery information.
Definition: link.h:229
ActivityQueue * send_queue
Queue of events to be received by the owning component.
Definition: link.h:219
SimTime_t convertToCoreTime(SimTime_t time) const
Converts from the component's view to the core's view of time.
Definition: timeConverter.h:37
Definition: componentInfo.h:44
Base Class for a queue of Activities.
Definition: activityQueue.h:21
Base class for Events - Items sent across links to communicate between components.
Definition: event.h:34
void send(Event *event)
Send an event with the Link's default delay.
Definition: link.h:129
Link between two components.
Definition: link.h:51
TimeConverter * getDefaultTimeBase()
Return the default Time Base for this link.
Definition: link.cc:749