Skip to content

Commit

Permalink
Cleanup and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gvoskuilen committed May 10, 2024
1 parent 0210218 commit 7df1a2e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 18 deletions.
6 changes: 0 additions & 6 deletions src/sst/core/checkpointAction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ CheckpointAction::CheckpointAction(Config* UNUSED(cfg), int this_rank, Simulatio
{
sim->insertActivity(period->getFactor(), this);
if ( (0 == this_rank) ) { lastTime = sst_get_cpu_time(); }
// if( (0 == this_rank) ) {
// sim->insertActivity( period->getFactor(), this );
// lastTime = sst_get_cpu_time();
// }
}

CheckpointAction::~CheckpointAction() {}
Expand All @@ -61,8 +57,6 @@ CheckpointAction::execute(void)

SimTime_t next = sim->getCurrentSimCycle() + m_period->getFactor();
sim->insertActivity(next, this);

// Print some resource usage
}

} // namespace SST
5 changes: 4 additions & 1 deletion src/sst/core/checkpointAction.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ class CheckpointAction : public Action

NotSerializable(SST::CheckpointAction) // Going to have to fix this

private : CheckpointAction() {};
private :

CheckpointAction()
{}
CheckpointAction(const CheckpointAction&);

void operator=(CheckpointAction const&);
Expand Down
1 change: 0 additions & 1 deletion src/sst/core/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ class Clock : public Action

void serialize_order(SST::Core::Serialization::serializer& ser) override;
ImplementSerializable(SST::Clock)
// NotSerializable(SST::Clock)
};


Expand Down
4 changes: 2 additions & 2 deletions src/sst/core/componentInfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ ComponentInfo::serialize_order(SST::Core::Serialization::serializer& ser)
ser& share_flags;

// For SubComponents map, need to serialize map by hand since we
// weill need to use the track non-pointer as pointer feature in
// the serilzer. This is becaues the SubComponent's ComponentInfo
// we will need to use the track non-pointer as pointer feature in
// the serializer. This is becaues the SubComponent's ComponentInfo
// object is actually stored in the map and they may have their
// own SubCompenents that will need to point to the data location
// in the map.
Expand Down
8 changes: 1 addition & 7 deletions src/sst/core/impl/timevortex/timeVortexPQ.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,7 @@ template <bool TS>
void
TimeVortexPQBase<TS>::print(Output& out) const
{
out.output("TimeVortex state:\n");

// STL's priority_queue does not support iteration.
/*std::vector<Activity*>& act = const_cast<TimeVortexPQBase<TS>*>(this)->getContainer(data);
for ( auto it = act.begin(); it != act.end(); it++ ) {
(*it)->print(" ", out);
}*/
out.output("TimeVortex state: cannot iterate priority_queue\n");
}

template <bool TS>
Expand Down
1 change: 0 additions & 1 deletion src/sst/core/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,6 @@ start_simulation(uint32_t tid, SimThreadInfo_t& info, Core::ThreadSafe::Barrier&
set<string> lib_names;
set<string> other_lib_names;
Factory::getFactory()->getLoadedLibraryNames(lib_names);
// vector<set<string> > all_lib_names;

// Send my lib_names to the next lowest rank
if ( info.myRank.rank == (info.world_size.rank - 1) ) {
Expand Down

0 comments on commit 7df1a2e

Please sign in to comment.