SST/macro
|
Class for storing all the partitions given to us by METIS. More...
#include <sim_partition.h>
Public Member Functions | |
virtual std::string | to_string () const |
virtual | ~partition () |
hw::index_subset * | subset (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_runtime * | rt_ |
std::vector< hw::index_subset * > | subsets_ |
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.
|
virtual |
Referenced by to_string().
|
protected |
Referenced by lpid_for_switch().
|
protected |
Referenced by lpid_for_switch().
|
inline |
Definition at line 83 of file sim_partition.h.
References local_num_switches_.
|
inline |
Definition at line 63 of file sim_partition.h.
References local_switches_.
|
inline |
Definition at line 68 of file sim_partition.h.
References local_switches_.
|
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().
|
inline |
Definition at line 58 of file sim_partition.h.
References num_switches_per_lp_.
|
inline |
Definition at line 78 of file sim_partition.h.
References num_switches_total_.
|
inline |
Definition at line 48 of file sim_partition.h.
References spkt_throw_printf, and subsets_.
|
inline |
Definition at line 73 of file sim_partition.h.
References switch_to_lpid_.
|
virtual |
Reimplemented in sstmac::occupied_block_partition, and sstmac::topology_partition.
Referenced by lpid_for_switch(), and sstmac::occupied_block_partition::occupied_block_partition().
|
inlinevirtual |
Definition at line 41 of file sim_partition.h.
References ~partition().
|
protected |
Definition at line 116 of file sim_partition.h.
Referenced by local_num_switches().
|
protected |
Definition at line 112 of file sim_partition.h.
Referenced by local_switch(), and local_switches().
|
protected |
Definition at line 124 of file sim_partition.h.
|
protected |
Definition at line 122 of file sim_partition.h.
|
protected |
Definition at line 120 of file sim_partition.h.
|
protected |
Definition at line 110 of file sim_partition.h.
Referenced by num_switches_per_lp().
|
protected |
Definition at line 114 of file sim_partition.h.
Referenced by lpid_for_switch(), and num_switches_total().
|
protected |
Definition at line 126 of file sim_partition.h.
|
protected |
Definition at line 128 of file sim_partition.h.
Referenced by subset().
|
protected |
Definition at line 108 of file sim_partition.h.
Referenced by lpid_for_switch(), and switch_to_lpid().
|
protected |
Definition at line 118 of file sim_partition.h.