|
SST/macro
|
An index strategy that allocates indices using a round robin. More...
#include <block_task_mapper.h>


Public Member Functions | |
| block_task_mapper (parallel_runtime *rt) | |
| virtual | ~block_task_mapper () throw () |
| virtual void | map_ranks (const app_id &aid, const ordered_node_set &nodes, int ppn, std::vector< node_id > &result, int nproc) |
| Assign processes to nodes. More... | |
Public Member Functions inherited from sstmac::sw::task_mapper | |
| virtual std::string | to_string () const |
| virtual void | set_topology (hw::topology *top) |
| virtual void | init_factory_params (sprockit::sim_parameters *params) |
| virtual | ~task_mapper () throw () |
Public Member Functions inherited from sprockit::factory_type | |
| virtual void | init_factory_params (sim_parameters *params) |
| virtual void | finalize_init () |
Additional Inherited Members | |
Protected Member Functions inherited from sstmac::sw::task_mapper | |
| task_mapper (parallel_runtime *rt) | |
| int | validate_nproc (int ppn, int num_nodes, int nproc, const char *name) const |
Protected Attributes inherited from sstmac::sw::task_mapper | |
| hw::topology * | topology_ |
| parallel_runtime * | rt_ |
An index strategy that allocates indices using a round robin.
Definition at line 23 of file block_task_mapper.h.
|
inline |
Definition at line 27 of file block_task_mapper.h.
References map_ranks(), and ~block_task_mapper().

|
virtual | |||||||||||||
Referenced by block_task_mapper().
|
virtual |
Assign processes to nodes.
| aid | The application ID for the application whose processes are being indexed |
| nodes | is the set of unique nodes to be used for the allocation |
| ppn | is the nominal number of processes allocated on each node. |
| result | is the resulting vector of length nodes (size nproc) |
| nproc | the total number of processes to allocate |
| value_error | if nodes.empty() |
| value_error | if ppn <= 0 |
| value_error | if nodes.size()*ppn < nproc |
Implements sstmac::sw::task_mapper.
Referenced by block_task_mapper().
1.8.11