SST/macro
node_id_allocation.h
Go to the documentation of this file.
1 #ifndef NODE_ID_ALLOCATION_H
2 #define NODE_ID_ALLOCATION_H
3 
6 
7 namespace sstmac {
8 namespace sw {
9 
11  public node_allocator
12 {
13 
14  public:
16  node_allocator(rt){}
17 
18  virtual void
19  init_factory_params(sprockit::sim_parameters* params);
20 
21  virtual ~node_id_allocation() throw() {}
22 
23  virtual void
24  allocate(int nnode_requested,
25  const ordered_node_set& available,
26  ordered_node_set &allocation) const;
27 
28  static void
29  read_coordinate_file(const std::string& file,
30  std::vector<node_id>& node_list,
31  hw::topology* top);
32 
33  protected:
34  std::string coord_file_;
35 
36 };
37 
38 }
39 }
40 
41 
42 #endif // NODE_ID_ALLOCATION_H
static void read_coordinate_file(const std::string &file, std::vector< node_id > &node_list, hw::topology *top)
std::set< node_id > ordered_node_set
Definition: node_set.h:10
virtual void init_factory_params(sprockit::sim_parameters *params)
Strategy type for assigning processes to nodes in a parallel run.
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
virtual void allocate(int nnode_requested, const ordered_node_set &available, ordered_node_set &allocation) const
Get nodes.
node_id_allocation(parallel_runtime *rt)