SST  11.0.0
StructuralSimulationToolkit
selfpart.h
1 // Copyright 2009-2021 NTESS. Under the terms
2 // of Contract DE-NA0003525 with NTESS, the U.S.
3 // Government retains certain rights in this software.
4 //
5 // Copyright (c) 2009-2021, NTESS
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_IMPL_PARTITONERS_SELF_H
14 #define SST_CORE_IMPL_PARTITONERS_SELF_H
15 
16 #include "sst/core/sstpart.h"
17 
18 #include "sst/core/eli/elementinfo.h"
19 
20 namespace SST {
21 namespace IMPL {
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:
36  "sst",
37  "self",
38  SST_ELI_ELEMENT_VERSION(1,0,0),
39  "Used when partitioning is already specified in the configuration file.")
40 
41  /**
42  Creates a new self partition scheme.
43  */
44  SSTSelfPartition(RankInfo UNUSED(total_ranks), RankInfo UNUSED(my_rank), int UNUSED(verbosity)) {}
45 
46  /**
47  Performs a partition of an SST simulation configuration
48  \param graph The simulation configuration to partition
49  */
50  void performPartition(ConfigGraph* UNUSED(graph)) override { return; }
51 
52  bool requiresConfigGraph() override { return true; }
53  bool spawnOnAllRanks() override { return false; }
54 
55 
56 };
57 
58 }
59 }
60 }
61 
62 #endif
A Configuration Graph A graph representing Components and Links.
Definition: configGraph.h:358
Self partitioner actually does nothing.
Definition: selfpart.h:31
Definition: rankInfo.h:21
void performPartition(ConfigGraph *UNUSED(graph)) override
Performs a partition of an SST simulation configuration.
Definition: selfpart.h:50
Base class for Partitioning graphs.
Definition: sstpart.h:32
SST_ELI_REGISTER_PARTITIONER(SSTSelfPartition,"sst","self", SST_ELI_ELEMENT_VERSION(1, 0, 0),"Used when partitioning is already specified in the configuration file.") SSTSelfPartition(RankInfo UNUSED(total_ranks)
Creates a new self partition scheme.