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

#include <dumpi_task_mapper.h>

Inheritance diagram for sstmac::sw::dumpi_task_mapper:
Inheritance graph
Collaboration diagram for sstmac::sw::dumpi_task_mapper:
Collaboration graph

Public Member Functions

 dumpi_task_mapper (parallel_runtime *rt)
 
void set_topology (hw::topology *top)
 
virtual void init_factory_params (sprockit::sim_parameters *params)
 
virtual ~dumpi_task_mapper () throw ()
 
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 ~task_mapper () throw ()
 
- Public Member Functions inherited from sprockit::factory_type
virtual void init_factory_params (sim_parameters *params)
 
virtual void finalize_init ()
 

Protected Member Functions

node_id node_id_from_hostname (const std::string &hostname)
 
node_id node_id_from_coordinates (int ncoord, int *coordinates)
 
- 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

std::string metaname_
 
hw::structured_topologyregtop_
 
- Protected Attributes inherited from sstmac::sw::task_mapper
hw::topology * topology_
 
parallel_runtimert_
 

Detailed Description

Definition at line 22 of file dumpi_task_mapper.h.

Constructor & Destructor Documentation

sstmac::sw::dumpi_task_mapper::dumpi_task_mapper ( parallel_runtime rt)
inline

Definition at line 26 of file dumpi_task_mapper.h.

References init_factory_params(), and set_topology().

Here is the call graph for this function:

virtual sstmac::sw::dumpi_task_mapper::~dumpi_task_mapper ( )
throw (
)
inlinevirtual

Definition at line 35 of file dumpi_task_mapper.h.

References map_ranks(), node_id_from_coordinates(), and node_id_from_hostname().

Here is the call graph for this function:

Member Function Documentation

virtual void sstmac::sw::dumpi_task_mapper::init_factory_params ( sprockit::sim_parameters *  params)
virtual

Reimplemented from sstmac::sw::task_mapper.

Referenced by dumpi_task_mapper().

void sstmac::sw::dumpi_task_mapper::map_ranks ( const app_id aid,
const ordered_node_set allocation,
int  ppn,
std::vector< node_id > &  result,
int  nproc 
)
virtual

Assign processes to nodes.

Parameters
aidThe application ID for the application whose processes are being indexed
nodesis the set of unique nodes to be used for the allocation
ppnis the nominal number of processes allocated on each node.
resultis the resulting vector of length nodes (size nproc)
nprocthe total number of processes to allocate
Exceptions
value_errorif nodes.empty()
value_errorif ppn <= 0
value_errorif nodes.size()*ppn < nproc

Implements sstmac::sw::task_mapper.

Referenced by ~dumpi_task_mapper().

node_id sstmac::sw::dumpi_task_mapper::node_id_from_coordinates ( int  ncoord,
int *  coordinates 
)
protected

Referenced by ~dumpi_task_mapper().

node_id sstmac::sw::dumpi_task_mapper::node_id_from_hostname ( const std::string &  hostname)
protected

Referenced by ~dumpi_task_mapper().

void sstmac::sw::dumpi_task_mapper::set_topology ( hw::topology *  top)
virtual

Reimplemented from sstmac::sw::task_mapper.

Referenced by dumpi_task_mapper().

Member Data Documentation

std::string sstmac::sw::dumpi_task_mapper::metaname_
protected

Definition at line 50 of file dumpi_task_mapper.h.

hw::structured_topology* sstmac::sw::dumpi_task_mapper::regtop_
protected

Definition at line 52 of file dumpi_task_mapper.h.


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