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

Class for storing all the partitions given to us by METIS. More...

#include <sim_partition.h>

Inheritance diagram for sstmac::partition:
Inheritance graph
Collaboration diagram for sstmac::partition:
Collaboration graph

Public Member Functions

virtual std::string to_string () const
 
virtual ~partition ()
 
hw::index_subsetsubset (int lpid) const
 
int * num_switches_per_lp ()
 
int local_switch (int idx) const
 
int * local_switches ()
 
int * switch_to_lpid ()
 
int num_switches_total () const
 
int local_num_switches () const
 
int lpid_for_switch (int switch_id) const
 
virtual int thread_for_local_switch (int local_idx) const
 
- Public Member Functions inherited from sprockit::factory_type
virtual void init_factory_params (sim_parameters *params)
 
virtual void finalize_init ()
 

Protected Member Functions

 partition (parallel_runtime *rt)
 
void init_local_switches ()
 

Protected Attributes

int * switch_to_lpid_
 
int * num_switches_per_lp_
 
int * local_switches_
 
int num_switches_total_
 
int local_num_switches_
 
int switches_per_thread_
 
int nthread_
 
int nproc_
 
int me_
 
parallel_runtimert_
 
std::vector< hw::index_subset * > subsets_
 

Detailed Description

Class for storing all the partitions given to us by METIS.

The inherited boost map stores individial partitions, while the parent_map_ member variable stores a flat map of switch to partition.

Definition at line 35 of file sim_partition.h.

Constructor & Destructor Documentation

virtual sstmac::partition::~partition ( )
virtual

Referenced by to_string().

sstmac::partition::partition ( parallel_runtime rt)
protected

Referenced by lpid_for_switch().

Member Function Documentation

void sstmac::partition::init_local_switches ( )
protected

Referenced by lpid_for_switch().

int sstmac::partition::local_num_switches ( ) const
inline

Definition at line 83 of file sim_partition.h.

References local_num_switches_.

int sstmac::partition::local_switch ( int  idx) const
inline

Definition at line 63 of file sim_partition.h.

References local_switches_.

int* sstmac::partition::local_switches ( )
inline

Definition at line 68 of file sim_partition.h.

References local_switches_.

int sstmac::partition::lpid_for_switch ( int  switch_id) const
inline

Definition at line 88 of file sim_partition.h.

References init_local_switches(), num_switches_total_, partition(), spkt_throw_printf, switch_to_lpid_, and thread_for_local_switch().

Here is the call graph for this function:

int* sstmac::partition::num_switches_per_lp ( )
inline

Definition at line 58 of file sim_partition.h.

References num_switches_per_lp_.

int sstmac::partition::num_switches_total ( ) const
inline

Definition at line 78 of file sim_partition.h.

References num_switches_total_.

hw::index_subset* sstmac::partition::subset ( int  lpid) const
inline

Definition at line 48 of file sim_partition.h.

References spkt_throw_printf, and subsets_.

int* sstmac::partition::switch_to_lpid ( )
inline

Definition at line 73 of file sim_partition.h.

References switch_to_lpid_.

virtual int sstmac::partition::thread_for_local_switch ( int  local_idx) const
virtual
virtual std::string sstmac::partition::to_string ( ) const
inlinevirtual

Definition at line 41 of file sim_partition.h.

References ~partition().

Here is the call graph for this function:

Member Data Documentation

int sstmac::partition::local_num_switches_
protected

Definition at line 116 of file sim_partition.h.

Referenced by local_num_switches().

int* sstmac::partition::local_switches_
protected

Definition at line 112 of file sim_partition.h.

Referenced by local_switch(), and local_switches().

int sstmac::partition::me_
protected

Definition at line 124 of file sim_partition.h.

int sstmac::partition::nproc_
protected

Definition at line 122 of file sim_partition.h.

int sstmac::partition::nthread_
protected

Definition at line 120 of file sim_partition.h.

int* sstmac::partition::num_switches_per_lp_
protected

Definition at line 110 of file sim_partition.h.

Referenced by num_switches_per_lp().

int sstmac::partition::num_switches_total_
protected

Definition at line 114 of file sim_partition.h.

Referenced by lpid_for_switch(), and num_switches_total().

parallel_runtime* sstmac::partition::rt_
protected

Definition at line 126 of file sim_partition.h.

std::vector<hw::index_subset*> sstmac::partition::subsets_
protected

Definition at line 128 of file sim_partition.h.

Referenced by subset().

int* sstmac::partition::switch_to_lpid_
protected

Definition at line 108 of file sim_partition.h.

Referenced by lpid_for_switch(), and switch_to_lpid().

int sstmac::partition::switches_per_thread_
protected

Definition at line 118 of file sim_partition.h.


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