SST/macro
|
Strategy type for assigning processes to nodes in a parallel run. More...
#include <node_allocator.h>
Public Member Functions | |
void | set_topology (hw::topology *top) |
virtual void | init_factory_params (sprockit::sim_parameters *params) |
virtual std::string | to_string () const |
virtual | ~node_allocator () throw () |
virtual void | allocate (int nnode, const ordered_node_set &available, ordered_node_set &allocation) const =0 |
Get nodes. More... | |
Public Member Functions inherited from sprockit::factory_type | |
virtual void | init_factory_params (sim_parameters *params) |
virtual void | finalize_init () |
Protected Member Functions | |
node_allocator (parallel_runtime *rt) | |
Protected Attributes | |
hw::topology * | topology_ |
parallel_runtime * | rt_ |
Strategy type for assigning processes to nodes in a parallel run.
Definition at line 36 of file node_allocator.h.
|
virtual |
Referenced by to_string().
|
inlineprotected |
Definition at line 67 of file node_allocator.h.
|
pure virtual |
Get nodes.
nnode | number of nodes requested |
available | the set of nodes that can be given |
allocation | returns the nodes that have been allocated |
Implemented in sstmac::sw::hostname_allocation, sstmac::sw::cart_allocation, sstmac::sw::random_allocation, sstmac::sw::dumpi_allocation, sstmac::sw::first_available_allocation, sstmac::sw::node_id_allocation, and sstmac::sw::coordinate_allocation.
Referenced by to_string().
|
virtual |
Reimplemented in sstmac::sw::cart_allocation, sstmac::sw::hostname_allocation, sstmac::sw::dumpi_allocation, sstmac::sw::random_allocation, sstmac::sw::node_id_allocation, and sstmac::sw::coordinate_allocation.
Referenced by set_topology().
|
inline |
Definition at line 40 of file node_allocator.h.
References init_factory_params(), and topology_.
|
inlinevirtual |
Definition at line 48 of file node_allocator.h.
References allocate(), and ~node_allocator().
|
protected |
Definition at line 72 of file node_allocator.h.
|
protected |
Definition at line 71 of file node_allocator.h.
Referenced by set_topology().