SST  7.0.0
StructuralSimulationToolkit
selfpart.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 
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  /**
36  Creates a new self partition scheme.
37  */
38  SSTSelfPartition(RankInfo total_ranks, RankInfo my_rank, int verbosity) {}
39 
40  /**
41  Performs a partition of an SST simulation configuration
42  \param graph The simulation configuration to partition
43  */
44  void performPartition(ConfigGraph* graph) { return; }
45 
46  bool requiresConfigGraph() { return true; }
47  bool spawnOnAllRanks() { return false; }
48 
49 
50  SST_ELI_REGISTER_PARTITIONER(SSTSelfPartition,"sst","self","Used when partitioning is already specified in the configuration file.")
51 
52  SST_ELI_DOCUMENT_VERSION(1,0,0)
53 
54 };
55 
56 }
57 }
58 
59 #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:337
Definition: action.cc:17
void performPartition(ConfigGraph *graph)
Performs a partition of an SST simulation configuration.
Definition: selfpart.h:44
Definition: rankInfo.h:21
Base class for Partitioning graphs.
Definition: sstpart.h:31
SSTSelfPartition(RankInfo total_ranks, RankInfo my_rank, int verbosity)
Creates a new self partition scheme.
Definition: selfpart.h:38