SST/macro
node_id_task_mapper.h
Go to the documentation of this file.
1 #ifndef NODE_ID_INDEXING_H
2 #define NODE_ID_INDEXING_H
3 
4 /*
5  * This file is part of SST/macroscale:
6  * The macroscale architecture simulator from the SST suite.
7  * Copyright (c) 2009 Sandia Corporation.
8  * This software is distributed under the BSD License.
9  * Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
10  * the U.S. Government retains certain rights in this software.
11  * For more information, see the LICENSE file in the top
12  * SST/macroscale directory.
13  */
14 
16 
17 namespace sstmac {
18 namespace sw {
19 
20 
22 {
23  public:
25  task_mapper(rt){}
26 
27  virtual ~node_id_task_mapper() throw() {}
28 
29  virtual void
30  init_factory_params(sprockit::sim_parameters* params);
31 
32  void map_ranks(const app_id& aid,
33  const ordered_node_set& nodes,
34  int ppn,
35  std::vector<node_id>& result,
36  int nproc);
37 
38  protected:
39  std::string listfile_;
40 
41 };
42 
43 
44 }
45 }
46 
47 
48 #endif // NODE_ID_INDEXING_H
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_task_mapper(parallel_runtime *rt)
Base class for strategies regarding how to sequentially number nodes in a parallel simulation...
Definition: task_mapper.h:33
virtual void init_factory_params(sprockit::sim_parameters *params)
int app_id
Definition: app_id.h:20