SST/macro
coordinate_allocation.h
Go to the documentation of this file.
1 #ifndef COORDINATE_ALLOCATION_H
2 #define COORDINATE_ALLOCATION_H
3 
6 
7 namespace sstmac {
8 namespace sw {
9 
11  public node_allocator
12 {
13  public:
15  node_allocator(rt){}
16 
17  virtual void
18  init_factory_params(sprockit::sim_parameters* params);
19 
20  virtual ~coordinate_allocation() throw() {}
21 
22  virtual void
23  allocate(int nnode_requested,
24  const ordered_node_set& available,
25  ordered_node_set& allocation) const;
26 
27  static void
29  parallel_runtime* rt,
30  const std::string& file,
31  std::vector<hw::coordinates>& node_list);
32 
33  protected:
34  std::string coord_file_;
35 
36 };
37 
38 }
39 }
40 
41 #endif // COORDINATE_ALLOCATION_H
virtual void init_factory_params(sprockit::sim_parameters *params)
std::set< node_id > ordered_node_set
Definition: node_set.h:10
coordinate_allocation(parallel_runtime *rt)
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...
static void read_coordinate_file(parallel_runtime *rt, const std::string &file, std::vector< hw::coordinates > &node_list)
virtual void allocate(int nnode_requested, const ordered_node_set &available, ordered_node_set &allocation) const
Get nodes.