Skip to content

Commit

Permalink
#1122: collection: touch new stats entries when advancing phase
Browse files Browse the repository at this point in the history
  • Loading branch information
nlslatt committed Nov 6, 2020
1 parent beb19ae commit ba94181
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/vt/vrt/collection/balance/elm_stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ void ElementStats::updatePhase(PhaseType const& inc) {
);

cur_phase_ += inc;

// Access all table entries for current phase, to ensure presence even
// if they're left empty
phase_timings_[cur_phase_];
subphase_timings_[cur_phase_];
phase_comm_[cur_phase_];
subphase_comm_[cur_phase_];
}

PhaseType ElementStats::getPhase() const {
Expand Down

0 comments on commit ba94181

Please sign in to comment.