SST/macro
|
#include <serial_runtime.h>
Public Member Functions | |
serial_runtime () | |
std::string | to_string () const |
virtual int64_t | allreduce_min (int64_t mintime) |
virtual int64_t | allreduce_max (int64_t maxtime) |
virtual void | global_sum (long *data, int nelems, int root) |
virtual void | global_sum (long long *data, int nelems, int root) |
virtual void | global_max (int *data, int nelems, int root) |
virtual void | global_max (long *data, int nelems, int root) |
virtual void | gather (void *send_buffer, int num_bytes, void *recv_buffer, int root) |
virtual void | allgather (void *send_buffer, int num_bytes, void *recv_buffer) |
virtual void | send (int dst, void *buffer, int buffer_size) |
virtual void | recv (int src, void *buffer, int buffer_size) |
virtual void | bcast (void *buffer, int bytes, int root) |
void | finalize () |
void | send_recv_messages (std::vector< incoming_msg > &incoming) |
void | send_event (timestamp t, topology_id tid, event *ev) |
virtual void | wait_merge_array (int tag) |
virtual void | declare_merge_array (void *buffer, int size, int tag) |
virtual bool | release_merge_array (int tag) |
Public Member Functions inherited from sstmac::parallel_runtime | |
virtual | ~parallel_runtime () |
virtual void | init_factory_params (sprockit::sim_parameters *params) |
virtual void | finalize_init () |
int | global_max (int my_elem) |
long | global_max (long my_elem) |
void | bcast_string (std::string &str, int root) |
std::istream * | bcast_file_stream (const std::string &fname) |
virtual void | init_runtime_params (sprockit::sim_parameters *params) |
virtual void | init_partition_params (sprockit::sim_parameters *params) |
virtual void | send_recv_messages (std::vector< void * > &incoming) |
virtual void | send_event (int thread_id, timestamp t, topology_id tid, event_loc_id src, uint32_t seqnum, event *ev) |
int | me () const |
int | nproc () const |
int | nthread () const |
int | ser_buf_size () const |
partition * | topology_partition () const |
void | free_recv_buffers (const std::vector< void * > &buffers) |
Public Member Functions inherited from sprockit::factory_type | |
virtual void | init_factory_params (sim_parameters *params) |
Public Member Functions inherited from sstmac::lockable | |
void | lock () |
void | unlock () |
Protected Member Functions | |
virtual void | do_send_message (int lp, void *buffer, int size) |
virtual void | do_send_recv_messages (std::vector< void * > &buffers) |
Protected Member Functions inherited from sstmac::parallel_runtime | |
parallel_runtime () | |
Protected Attributes | |
std::map< int, int > | merge_refcounts_ |
Protected Attributes inherited from sstmac::parallel_runtime | |
int | nproc_ |
int | nthread_ |
int | me_ |
std::vector< message_buffer_cache > | send_buffer_pools_ |
message_buffer_cache | recv_buffer_pool_ |
std::vector< std::vector< void * > > | send_buffers_ |
int | buf_size_ |
partition * | part_ |
Additional Inherited Members | |
Static Public Attributes inherited from sstmac::parallel_runtime | |
static const int | global_root |
Protected Types inherited from sstmac::parallel_runtime | |
typedef std::pair< int, void * > | send_buf_t |
Definition at line 9 of file serial_runtime.h.
sstmac::native::serial_runtime::serial_runtime | ( | ) |
|
virtual |
Implements sstmac::parallel_runtime.
Referenced by to_string().
|
virtual |
Implements sstmac::parallel_runtime.
Referenced by to_string().
|
virtual |
Implements sstmac::parallel_runtime.
Referenced by to_string().
|
virtual |
Implements sstmac::parallel_runtime.
Referenced by to_string().
|
virtual |
Implements sstmac::parallel_runtime.
Referenced by finalize().
|
protectedvirtual |
Implements sstmac::parallel_runtime.
Referenced by finalize().
|
protectedvirtual |
Implements sstmac::parallel_runtime.
Referenced by finalize().
|
inlinevirtual |
Implements sstmac::parallel_runtime.
Definition at line 53 of file serial_runtime.h.
References declare_merge_array(), do_send_message(), do_send_recv_messages(), release_merge_array(), send_event(), send_recv_messages(), and wait_merge_array().
|
virtual |
Implements sstmac::parallel_runtime.
Referenced by to_string().
|
virtual |
Implements sstmac::parallel_runtime.
Referenced by to_string().
|
virtual |
Implements sstmac::parallel_runtime.
|
virtual |
Implements sstmac::parallel_runtime.
Referenced by to_string().
|
virtual |
Implements sstmac::parallel_runtime.
|
virtual |
Implements sstmac::parallel_runtime.
Referenced by to_string().
|
virtual |
Implements sstmac::parallel_runtime.
Referenced by finalize().
|
virtual |
Implements sstmac::parallel_runtime.
Referenced by to_string().
void sstmac::native::serial_runtime::send_event | ( | timestamp | t, |
topology_id | tid, | ||
event * | ev | ||
) |
The | topology id to send a remote message to |
buffer | The buffer containing a serialized message |
size | The size of the buffer being sent |
Referenced by finalize().
void sstmac::native::serial_runtime::send_recv_messages | ( | std::vector< incoming_msg > & | incoming | ) |
pool | A buffer cache corresponding to a pool of free buffers |
incoming | A buffer cache holding buffers that correspond to incoming messages |
Referenced by finalize().
|
inline |
Definition at line 16 of file serial_runtime.h.
References allgather(), allreduce_max(), allreduce_min(), bcast(), gather(), global_max(), global_sum(), recv(), and send().
|
virtual |
Implements sstmac::parallel_runtime.
Referenced by finalize().
|
protected |
Definition at line 86 of file serial_runtime.h.