SST  7.0.0
StructuralSimulationToolkit
rrobin.h
1 // Copyright 2009-2017 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-2017, 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 #include <sst/core/elementinfo.h>
16 
17 namespace SST {
18 namespace Partition {
19 
21 
22 private:
23  RankInfo world_size;
24 
25 public:
26  SSTRoundRobinPartition(RankInfo world_size, RankInfo my_rank, int verbosity);
27 
28  /**
29  Performs a partition of an SST simulation configuration
30  \param graph The simulation configuration to partition
31  */
32  void performPartition(PartitionGraph* graph) override;
33 
34  bool requiresConfigGraph() override { return false; }
35  bool spawnOnAllRanks() override { return false; }
36 
37 
38  SST_ELI_REGISTER_PARTITIONER(SSTRoundRobinPartition,"sst","roundrobin","Partitions components using a simple round robin scheme based on ComponentID. Sequential IDs will be placed on different ranks.")
39 
40  SST_ELI_DOCUMENT_VERSION(1,0,0)
41 };
42 
43 } // namespace Partition
44 } //namespace SST
45 #endif //SST_CORE_PART_RROBIN_H
Definition: configGraph.h:530
Definition: action.cc:17
Definition: rankInfo.h:21
Base class for Partitioning graphs.
Definition: sstpart.h:31
void performPartition(PartitionGraph *graph) override
Performs a partition of an SST simulation configuration.
Definition: rrobin.cc:31