SST/macro
coordinate_task_mapper.h
Go to the documentation of this file.
1 #ifndef COORDINATE_INDEXING_H
2 #define COORDINATE_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 
15 #ifndef SSTMAC_SOFTWARE_SERVICES_LAUNCH_INDEXING_FROMFILEINDEXER_H_INCLUDED
16 #define SSTMAC_SOFTWARE_SERVICES_LAUNCH_INDEXING_FROMFILEINDEXER_H_INCLUDED
17 
19 
20 namespace sstmac {
21 namespace sw {
22 
23 
25 {
26 
27  public:
29  task_mapper(rt){}
30 
31  virtual ~coordinate_task_mapper() throw() {}
32 
33  void
34  map_ranks(const app_id& aid,
35  const ordered_node_set& nodes,
36  int ppn,
37  std::vector<node_id> &result,
38  int nproc);
39 
40  virtual void
41  init_factory_params(sprockit::sim_parameters *params);
42 
43  protected:
44  std::string listfile_;
45 
46 };
47 
48 
49 }
50 }
51 #endif
52 
53 
54 
55 #endif // COORDINATE_INDEXING_H
virtual void init_factory_params(sprockit::sim_parameters *params)
std::set< node_id > ordered_node_set
Definition: node_set.h:10
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
Base class for strategies regarding how to sequentially number nodes in a parallel simulation...
Definition: task_mapper.h:33
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.
int app_id
Definition: app_id.h:20