SST  7.1.0
StructuralSimulationToolkit
singlepart.h
1 // Copyright 2009-2017 Sandia Corporation. Under the terms
2 // of Contract DE-NA0003525 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 
12 
13 #ifndef SST_CORE_PART_SINGLE
14 #define SST_CORE_PART_SINGLE
15 
16 #include <sst/core/part/sstpart.h>
17 #include <sst/core/elementinfo.h>
18 
19 using namespace SST;
20 using namespace SST::Partition;
21 
22 namespace SST {
23 namespace Partition {
24 
25 
26 
27 /**
28  Single partitioner is a virtual partitioner used for serial jobs.
29  It simply ensures that all components are assigned to rank 0.
30 */
32 
33 public:
34  SST_ELI_REGISTER_PARTITIONER(
36  "sst",
37  "single",
38  SST_ELI_ELEMENT_VERSION(1,0,0),
39  "Allocates all components to rank 0. Automatically selected for serial jobs.")
40 
41  /**
42  Creates a new single partition scheme.
43  */
44  SSTSinglePartition(RankInfo total_ranks, RankInfo my_rank, int verbosity);
45 
46  /**
47  Performs a partition of an SST simulation configuration
48  \param graph The simulation configuration to partition
49  */
50  void performPartition(PartitionGraph* graph) override;
51 
52  bool requiresConfigGraph() override { return false; }
53  bool spawnOnAllRanks() override { return false; }
54 
55 
56 };
57 
58 }
59 }
60 
61 #endif
Definition: configGraph.h:530
Definition: element.h:31
Definition: action.cc:17
Definition: rankInfo.h:21
Base class for Partitioning graphs.
Definition: sstpart.h:31
Single partitioner is a virtual partitioner used for serial jobs.
Definition: singlepart.h:31