SST  7.2.0
StructuralSimulationToolkit
selfpart.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_SELF
14 #define SST_CORE_PART_SELF
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  Self partitioner actually does nothing. It is simply a pass
29  through for graphs which have been partitioned during graph
30  creation.
31 */
33 
34 public:
35  SST_ELI_REGISTER_PARTITIONER(
37  "sst",
38  "self",
39  SST_ELI_ELEMENT_VERSION(1,0,0),
40  "Used when partitioning is already specified in the configuration file.")
41 
42  /**
43  Creates a new self partition scheme.
44  */
45  SSTSelfPartition(RankInfo UNUSED(total_ranks), RankInfo UNUSED(my_rank), int UNUSED(verbosity)) {}
46 
47  /**
48  Performs a partition of an SST simulation configuration
49  \param graph The simulation configuration to partition
50  */
51  void performPartition(ConfigGraph* UNUSED(graph)) { return; }
52 
53  bool requiresConfigGraph() { return true; }
54  bool spawnOnAllRanks() { return false; }
55 
56 
57 };
58 
59 }
60 }
61 
62 #endif
Self partitioner actually does nothing.
Definition: selfpart.h:32
Definition: element.h:31
A Configuration Graph A graph representing Components and Links.
Definition: configGraph.h:294
Definition: action.cc:17
void performPartition(ConfigGraph *UNUSED(graph))
Performs a partition of an SST simulation configuration.
Definition: selfpart.h:51
Definition: rankInfo.h:21
Base class for Partitioning graphs.
Definition: sstpart.h:31