SST/macro
dumpi_task_mapper.h
Go to the documentation of this file.
1 /*
2  * This file is part of SST/macroscale:
3  * The macroscale architecture simulator from the SST suite.
4  * Copyright (c) 2009 Sandia Corporation.
5  * This software is distributed under the BSD License.
6  * Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
7  * the U.S. Government retains certain rights in this software.
8  * For more information, see the LICENSE file in the top
9  * SST/macroscale directory.
10  */
11 
12 #ifndef SSTMAC_SOFTWARE_SERVICES_LAUNCH_INDEXING_FROMFILEINDEXER_H_INCLUDED
13 #define SSTMAC_SOFTWARE_SERVICES_LAUNCH_INDEXING_FROMFILEINDEXER_H_INCLUDED
14 
17 
18 namespace sstmac {
19 namespace sw {
20 
21 
23 {
24 
25  public:
27  task_mapper(rt){}
28 
29  void
30  set_topology(hw::topology *top);
31 
32  virtual void
33  init_factory_params(sprockit::sim_parameters *params);
34 
35  virtual ~dumpi_task_mapper() throw() {}
36 
37  void map_ranks(const app_id& aid,
38  const ordered_node_set& nodes,
39  int ppn,
40  std::vector<node_id> &result,
41  int nproc);
42  protected:
43  node_id
44  node_id_from_hostname(const std::string& hostname);
45 
46  node_id
47  node_id_from_coordinates(int ncoord, int* coordinates);
48 
49  protected:
50  std::string metaname_;
51 
53 
54 };
55 
56 }
57 }
58 #endif
59 
node_id node_id_from_coordinates(int ncoord, int *coordinates)
std::set< node_id > ordered_node_set
Definition: node_set.h:10
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.
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
node_id node_id_from_hostname(const std::string &hostname)
hw::structured_topology * regtop_
dumpi_task_mapper(parallel_runtime *rt)
void set_topology(hw::topology *top)
Base class for strategies regarding how to sequentially number nodes in a parallel simulation...
Definition: task_mapper.h:33
Encapsulates a topology like torus, fat tree, butterfly which has a regular, well-defined structure...
endpoint_id node_id
Definition: node_address.h:20
int app_id
Definition: app_id.h:20
virtual void init_factory_params(sprockit::sim_parameters *params)