SST  6.1.0
StructuralSimulationToolkit
singlepart.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_SINGLE
14 #define SST_CORE_PART_SINGLE
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  Single partitioner is a virtual partitioner used for serial jobs.
28  It simply ensures that all components are assigned to rank 0.
29 */
31 
32  public:
33  /**
34  Creates a new single partition scheme.
35  */
37 
38  /**
39  Performs a partition of an SST simulation configuration
40  \param graph The simulation configuration to partition
41  */
42  void performPartition(PartitionGraph* graph);
43 
44  bool requiresConfigGraph() { return false; }
45  bool spawnOnAllRanks() { return false; }
46 
47  static SSTPartitioner* allocate(RankInfo total_ranks, RankInfo my_rank, int verbosity) {
48  return new SSTSinglePartition();
49  }
50 
51  private:
52  static bool initialized;
53 };
54 
55 }
56 }
57 
58 #endif
Definition: configGraph.h:397
Definition: element.h:38
Definition: action.cc:17
Definition: rankInfo.h:21
Base class for Partitioning graphs.
Definition: sstpart.h:27
Single partitioner is a virtual partitioner used for serial jobs.
Definition: singlepart.h:30