Skip to content

Commit

Permalink
#1938: get LB start time from phase manager
Browse files Browse the repository at this point in the history
  • Loading branch information
stmcgovern committed Oct 24, 2022
1 parent 9c7ae5e commit 0a2036f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/vt/phase/phase_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ struct PhaseManager : runtime::component::Component<PhaseManager> {
*/
void setStartTime();

/**
* \brief return start time for the current phase.
*/
TimeType getStartTime() const {return start_time_; }

/**
* \brief Print summary for the current phase.
*
Expand Down
3 changes: 2 additions & 1 deletion src/vt/vrt/collection/manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ void CollectionManager::startup() {
elm.second();
}
auto const cur_phase = thePhase()->getCurrentPhase();
theLBManager()->selectStartLB(cur_phase);
auto current_time = thePhase()->getStartTime();
theLBManager()->selectStartLB(cur_phase, current_time);
});
#endif
}
Expand Down

0 comments on commit 0a2036f

Please sign in to comment.