SST/macro
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
sstmac::native::serial_runtime Class Reference

#include <serial_runtime.h>

Inheritance diagram for sstmac::native::serial_runtime:
Inheritance graph
Collaboration diagram for sstmac::native::serial_runtime:
Collaboration graph

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
 
partitiontopology_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_cachesend_buffer_pools_
 
message_buffer_cache recv_buffer_pool_
 
std::vector< std::vector< void * > > send_buffers_
 
int buf_size_
 
partitionpart_
 

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
 

Detailed Description

Definition at line 9 of file serial_runtime.h.

Constructor & Destructor Documentation

sstmac::native::serial_runtime::serial_runtime ( )

Member Function Documentation

virtual void sstmac::native::serial_runtime::allgather ( void *  send_buffer,
int  num_bytes,
void *  recv_buffer 
)
virtual

Implements sstmac::parallel_runtime.

Referenced by to_string().

virtual int64_t sstmac::native::serial_runtime::allreduce_max ( int64_t  maxtime)
virtual

Implements sstmac::parallel_runtime.

Referenced by to_string().

virtual int64_t sstmac::native::serial_runtime::allreduce_min ( int64_t  mintime)
virtual

Implements sstmac::parallel_runtime.

Referenced by to_string().

virtual void sstmac::native::serial_runtime::bcast ( void *  buffer,
int  bytes,
int  root 
)
virtual

Implements sstmac::parallel_runtime.

Referenced by to_string().

virtual void sstmac::native::serial_runtime::declare_merge_array ( void *  buffer,
int  size,
int  tag 
)
virtual

Implements sstmac::parallel_runtime.

Referenced by finalize().

virtual void sstmac::native::serial_runtime::do_send_message ( int  lp,
void *  buffer,
int  size 
)
protectedvirtual

Implements sstmac::parallel_runtime.

Referenced by finalize().

virtual void sstmac::native::serial_runtime::do_send_recv_messages ( std::vector< void * > &  buffers)
protectedvirtual

Implements sstmac::parallel_runtime.

Referenced by finalize().

void sstmac::native::serial_runtime::finalize ( )
inlinevirtual
virtual void sstmac::native::serial_runtime::gather ( void *  send_buffer,
int  num_bytes,
void *  recv_buffer,
int  root 
)
virtual

Implements sstmac::parallel_runtime.

Referenced by to_string().

virtual void sstmac::native::serial_runtime::global_max ( int *  data,
int  nelems,
int  root 
)
virtual

Implements sstmac::parallel_runtime.

Referenced by to_string().

virtual void sstmac::native::serial_runtime::global_max ( long *  data,
int  nelems,
int  root 
)
virtual
virtual void sstmac::native::serial_runtime::global_sum ( long *  data,
int  nelems,
int  root 
)
virtual

Implements sstmac::parallel_runtime.

Referenced by to_string().

virtual void sstmac::native::serial_runtime::global_sum ( long long *  data,
int  nelems,
int  root 
)
virtual
virtual void sstmac::native::serial_runtime::recv ( int  src,
void *  buffer,
int  buffer_size 
)
virtual

Implements sstmac::parallel_runtime.

Referenced by to_string().

virtual bool sstmac::native::serial_runtime::release_merge_array ( int  tag)
virtual

Implements sstmac::parallel_runtime.

Referenced by finalize().

virtual void sstmac::native::serial_runtime::send ( int  dst,
void *  buffer,
int  buffer_size 
)
virtual

Implements sstmac::parallel_runtime.

Referenced by to_string().

void sstmac::native::serial_runtime::send_event ( timestamp  t,
topology_id  tid,
event ev 
)
Parameters
Thetopology id to send a remote message to
bufferThe buffer containing a serialized message
sizeThe size of the buffer being sent

Referenced by finalize().

void sstmac::native::serial_runtime::send_recv_messages ( std::vector< incoming_msg > &  incoming)
Parameters
poolA buffer cache corresponding to a pool of free buffers
incomingA buffer cache holding buffers that correspond to incoming messages

Referenced by finalize().

std::string sstmac::native::serial_runtime::to_string ( ) const
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().

Here is the call graph for this function:

virtual void sstmac::native::serial_runtime::wait_merge_array ( int  tag)
virtual

Implements sstmac::parallel_runtime.

Referenced by finalize().

Member Data Documentation

std::map<int, int> sstmac::native::serial_runtime::merge_refcounts_
protected

Definition at line 86 of file serial_runtime.h.


The documentation for this class was generated from the following file: