SST/macro
hostname_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 
16 
17 namespace sstmac {
18 namespace sw {
19 
20 
22 {
23  public:
25  task_mapper(rt){}
26 
27  virtual void
28  init_factory_params(sprockit::sim_parameters *params);
29 
30  virtual ~hostname_task_mapper() throw() {}
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  protected:
38  std::string listfile_;
39 
40 };
41 }
42 }
43 #endif
44 
virtual void init_factory_params(sprockit::sim_parameters *params)
std::set< node_id > ordered_node_set
Definition: node_set.h:10
hostname_task_mapper(parallel_runtime *rt)
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