SST/macro
first_available_allocation.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 FIRSTAVAILABLEALLOCATION_H
13 #define FIRSTAVAILABLEALLOCATION_H
14 
16 
17 namespace sstmac {
18 namespace sw {
19 
21 {
22  public:
24  node_allocator(rt){}
25 
26  virtual
27  ~first_available_allocation() throw ();
28 
29  void
30  allocate(
31  int nnode_requested,
32  const ordered_node_set& available,
33  ordered_node_set& allocation) const;
34 
35 };
36 
37 
38 }
39 } // end of namespace sstmac
40 
41 
42 #endif // FIRSTAVAILABLEALLOCATION_H
43 
std::set< node_id > ordered_node_set
Definition: node_set.h:10
Strategy type for assigning processes to nodes in a parallel run.
void allocate(int nnode_requested, const ordered_node_set &available, ordered_node_set &allocation) const
Get nodes.
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...