SST  6.1.0
StructuralSimulationToolkit
selfpart.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 
12 
13 #ifndef SST_CORE_PART_SELF
14 #define SST_CORE_PART_SELF
15 
16 #include <sst/core/part/sstpart.h>
17 
18 using namespace SST;
19 using namespace SST::Partition;
20 
21 namespace SST {
22 namespace Partition {
23 
24 
25 
26 /**
27  Self partitioner actually does nothing. It is simply a pass
28  through for graphs which have been partitioned during graph
29  creation.
30 */
32 
33  public:
34  /**
35  Creates a new self partition scheme.
36  */
38 
39  /**
40  Performs a partition of an SST simulation configuration
41  \param graph The simulation configuration to partition
42  */
43  void performPartition(ConfigGraph* graph);
44 
45  bool requiresConfigGraph() { return true; }
46  bool spawnOnAllRanks() { return false; }
47 
48  static SSTPartitioner* allocate(RankInfo total_ranks, RankInfo my_rank, int verbosity) {
49  return new SSTSelfPartition();
50  }
51 
52  private:
53  static bool initialized;
54 };
55 
56 }
57 }
58 
59 #endif
Self partitioner actually does nothing.
Definition: selfpart.h:31
Definition: element.h:38
A Configuration Graph A graph representing Components and Links.
Definition: configGraph.h:202
Definition: action.cc:17
Definition: rankInfo.h:21
Base class for Partitioning graphs.
Definition: sstpart.h:27