Skip to content

Commit

Permalink
#941: added subphase support to loadComm
Browse files Browse the repository at this point in the history
  • Loading branch information
Braden Mailloux committed Oct 15, 2020
1 parent 0a2631e commit 67578f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/vt/vrt/collection/balance/elm_stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,14 @@ TimeType ElementStats::getLoad(PhaseType phase, SubphaseType subphase) const {
}

CommMapType const&
ElementStats::getComm(PhaseType const& phase) {
ElementStats::getComm(PhaseType const& phase, SubphaseType const& subphase) {
comm_.resize(phase + 1);
auto const& phase_comm = comm_[phase];

vt_debug_print(
lb, node,
"ElementStats: getComm: comm size={}, phase={}\n",
phase_comm.size(), phase
"ElementStats: getComm: comm size={}, phase={}, subphase={}\n",
phase_comm.size(), phase, subphase
);

return phase_comm;
Expand Down
2 changes: 1 addition & 1 deletion src/vt/vrt/collection/balance/elm_stats.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ template <typename ColT>
auto const& untyped_proxy = col->getProxy();
auto const& total_load = stats.getLoad(cur_phase, getFocusedSubPhase(untyped_proxy));
auto const& subphase_loads = stats.subphase_timings_.at(cur_phase);
auto const& comm = stats.getComm(cur_phase);
auto const& comm = stats.getComm(cur_phase, getFocusedSubPhase(untyped_proxy));
auto const& idx = col->getIndex();
auto const& elm_proxy = proxy[idx];

Expand Down

0 comments on commit 67578f8

Please sign in to comment.