SST/macro
random_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 random_alloCATION_H
13 #define random_alloCATION_H
14 
16 
17 namespace sstmac {
18 namespace sw {
19 
21 {
22  public:
24  node_allocator(rt){}
25 
26  void
27  init_factory_params(sprockit::sim_parameters *params);
28 
29  virtual
30  ~random_allocation() throw ();
31 
32  void
33  allocate(
34  int nnode_requested,
35  const ordered_node_set& available,
36  ordered_node_set& allocation) const;
37 
38  protected:
40 
41 };
42 
43 
44 }
45 } // end of namespace sstmac
46 
47 
48 #endif // random_alloCATION_H
49 
void allocate(int nnode_requested, const ordered_node_set &available, ordered_node_set &allocation) const
Get nodes.
random_allocation(parallel_runtime *rt)
std::set< node_id > ordered_node_set
Definition: node_set.h:10
RNG::UniformInteger * rng_
This is a base class for random number generators that return an integer uniformly distributed in a r...
Definition: rng.h:26
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...
void init_factory_params(sprockit::sim_parameters *params)