SST/macro
|
A stand-in node. More...
#include <simple_node.h>
Public Member Functions | |
virtual | ~simple_node () |
virtual void | finalize_init () |
Standard factory type initializer. More... | |
void | init_factory_params (sprockit::sim_parameters *params) |
Standard factory type initializer. More... | |
virtual void | execute (ami::COMP_FUNC func, event *data, callback *cb) |
Make the node execute a particular compute function. More... | |
virtual void | set_event_manager (event_manager *man) |
Set the eventmanager for this scheduler. More... | |
Public Member Functions inherited from sstmac::hw::node | |
virtual | ~node () |
void | set_nic (nic *n) |
Initializer used in stand-alone core. More... | |
void | connect (int src_outport, int dst_inport, connection_type_t ty, connectable *mod, config *cfg) |
connect More... | |
memory_model * | mem () const |
nic * | get_nic () const |
sw::operating_system * | os () const |
virtual std::string | to_string () const |
node_id | addr () const |
void | fail_stop () |
Cause the node to crash. More... | |
unique_event_id | allocate_unique_id () |
Choose a unique (64-bit) integer ID for a message. More... | |
virtual void | execute (ami::SERVICE_FUNC func, event *data) |
execute Asynchronously execute a kernel on some service associated with the node. More... | |
virtual void | handle (event *ev) |
void | send_to_nic (network_message *netmsg) |
Push a network message (operation at the MTL layer) onto the NIC. More... | |
void | launch (timestamp start, sw::launch_event *msg) |
Public Member Functions inherited from sprockit::factory_type | |
virtual void | init_factory_params (sim_parameters *params) |
Public Member Functions inherited from sstmac::hw::failable | |
bool | failed () const |
void | fail () |
Public Member Functions inherited from sstmac::event_scheduler | |
virtual | ~event_scheduler () |
void | cancel_all_messages () |
void | ipc_schedule (timestamp t, event_handler *handler, event *ev) |
ipc_schedule Should only be called on stub handlers for which handler->ipc_handler() returns true More... | |
void | schedule (timestamp t, event_handler *handler, event *ev) |
Add an event to the event queue, where msg will get delivered to handler at time t. More... | |
void | schedule (timestamp t, event_queue_entry *ev) |
void | schedule_now (event_queue_entry *ev) |
void | schedule_now (event_handler *handler, event *ev) |
void | schedule_delay (timestamp delay, event_handler *handler, event *ev) |
void | schedule_delay (timestamp delay, event_queue_entry *ev) |
void | send_self_event (timestamp arrival, event *ev) |
void | send_delayed_self_event (timestamp delay, event *ev) |
void | send_now_self_event (event *ev) |
void | send_self_event_queue (timestamp arrival, event_queue_entry *ev) |
void | send_delayed_self_event_queue (timestamp delay, event_queue_entry *ev) |
void | send_now_self_event_queue (event_queue_entry *ev) |
void | register_stat (stat_collector *coll) |
event_manager * | event_mgr () const |
timestamp | now () const |
get the current time More... | |
int | nthread () const |
Public Member Functions inherited from sstmac::event_handler | |
virtual | ~event_handler () |
event_loc_id | event_location () const |
virtual bool | ipc_handler () const |
Whether an event handler is a "fake" handler that represents logical process boundary. More... | |
int | thread_id () const |
virtual void | deadlock_check (event *ev) |
virtual void | deadlock_check () |
Additional Inherited Members | |
Public Types inherited from sstmac::hw::connectable | |
enum | config_type_t { RedundantConnection =0, WeightedConnection =1, FixedBandwidthConnection =2, FixedConnection =3, BasicConnection =4 } |
enum | connection_type_t { output, input } |
Static Public Member Functions inherited from sstmac::hw::connectable | |
static const char * | str (connection_type_t ty) |
Static Public Attributes inherited from sstmac::event_handler | |
static const int | null_lpid = -1 |
static const int | null_threadid = -1 |
Static Public Attributes inherited from sstmac::hw::connectable | |
static const int | any_port = -1 |
Protected Member Functions inherited from sstmac::hw::node | |
node () | |
void | connect_nic () |
Protected Member Functions inherited from sstmac::hw::failable | |
failable () | |
Protected Member Functions inherited from sstmac::event_scheduler | |
event_scheduler () | |
Protected Member Functions inherited from sstmac::event_handler | |
event_handler () | |
void | init_loc_id (event_loc_id id) |
void | init_thread_id (int id) |
Protected Attributes inherited from sstmac::hw::node | |
sw::app_launch * | env_ |
sw::operating_system * | os_ |
node_id | my_addr_ |
memory_model * | mem_model_ |
processor * | proc_ |
nic * | nic_ |
int | ncores_ |
int | nsocket_ |
Protected Attributes inherited from sstmac::hw::failable | |
bool | failed_ |
Protected Attributes inherited from sstmac::event_scheduler | |
uint32_t | seqnum_ |
A stand-in node.
This node type passes all requests directly to the simulator and has no resource contention (infinite processors),
Definition at line 26 of file simple_node.h.
|
virtual |
|
virtual |
Make the node execute a particular compute function.
This generally causes the function to be executed immediately.
func | Enum identifying the type of computation |
data | Event object encapsulating data/metadata for computation |
cb | The event to execute when kernel is complete |
Implements sstmac::hw::node.
|
virtual |
Standard factory type initializer.
Perform extra initialization work after all parameters have been read in.
Reimplemented from sstmac::hw::node.
|
virtual |
Standard factory type initializer.
Read in all parameters. The parameter object
Reimplemented from sstmac::hw::node.
|
virtual |
Set the eventmanager for this scheduler.
Unfortunately, this always has to be called after an event_scheduler is constructed.
m | the simulation eventmanager |
Reimplemented from sstmac::hw::node.