#include <hostname_allocation.h>
|
static void | read_map_file (parallel_runtime *rt, const char *here, const std::string &mapfile, std::map< std::string, std::vector< int > > &hostmap) |
| This function reads in a map file for mapping host names to network coordinates. More...
|
|
Definition at line 23 of file hostname_allocation.h.
virtual sstmac::sw::hostname_allocation::~hostname_allocation |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inlinevirtual |
Get nodes.
- Parameters
-
nnode | number of nodes requested |
available | the set of nodes that can be given |
allocation | returns the nodes that have been allocated |
- Returns
- Whether the allocation succeeded based on available nodes
Implements sstmac::sw::node_allocator.
Referenced by hostname_allocation().
virtual void sstmac::sw::hostname_allocation::init_factory_params |
( |
sprockit::sim_parameters * |
params | ) |
|
|
virtual |
static void sstmac::sw::hostname_allocation::read_map_file |
( |
parallel_runtime * |
rt, |
|
|
const char * |
here, |
|
|
const std::string & |
mapfile, |
|
|
std::map< std::string, std::vector< int > > & |
hostmap |
|
) |
| |
|
static |
This function reads in a map file for mapping host names to network coordinates.
- Parameters
-
here | the function making the call, used for more informative exceptions |
mapfile | name of the map file |
hostmap | map in which host mappings are placed |
Referenced by hostname_allocation().
nodemap_t sstmac::sw::hostname_allocation::hostnamemap_ |
|
static |
std::string sstmac::sw::hostname_allocation::mapfile_ |
|
protected |
std::map<long, std::string> sstmac::sw::hostname_allocation::nodenum_to_host_map_ |
|
static |
The documentation for this class was generated from the following file: