SST  6.0.0
StructuralSimulationToolkit
rrobin.h
1 // Copyright 2009-2016 Sandia Corporation. Under the terms
2 // of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S.
3 // Government retains certain rights in this software.
4 //
5 // Copyright (c) 2009-2016, Sandia Corporation
6 // All rights reserved.
7 //
8 // This file is part of the SST software package. For license
9 // information, see the LICENSE file in the top level directory of the
10 // distribution.
11 #ifndef SST_CORE_PART_RROBIN_H
12 #define SST_CORE_PART_RROBIN_H
13 
14 #include <sst/core/part/sstpart.h>
15 
16 namespace SST {
17 namespace Partition {
18 
20 
21 public:
22  SSTRoundRobinPartition(RankInfo world_size);
23 
24  /**
25  Performs a partition of an SST simulation configuration
26  \param graph The simulation configuration to partition
27  */
28  void performPartition(PartitionGraph* graph);
29 
30  bool requiresConfigGraph() { return false; }
31  bool spawnOnAllRanks() { return false; }
32 
33  static SSTPartitioner* allocate(RankInfo total_ranks, RankInfo my_rank, int verbosity) {
34  return new SSTRoundRobinPartition(total_ranks);
35  }
36 
37 private:
38  RankInfo world_size;
39  static bool initialized;
40 };
41 
42 } // namespace Partition
43 } //namespace SST
44 #endif //SST_CORE_PART_RROBIN_H
Definition: configGraph.h:397
void performPartition(PartitionGraph *graph)
Performs a partition of an SST simulation configuration.
Definition: rrobin.cc:32
Definition: action.cc:17
Definition: rankInfo.h:21
Base class for Partitioning graphs.
Definition: sstpart.h:27