From caa15be670f4a24fe053ddff7def42755f7fac0a Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Wed, 15 Jul 2020 15:59:38 -0700 Subject: [PATCH] #708: lb: add ProcStats subphase vector (missed in rebase) --- src/vt/vrt/collection/balance/proc_stats.cc | 3 +++ src/vt/vrt/collection/balance/proc_stats.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/vt/vrt/collection/balance/proc_stats.cc b/src/vt/vrt/collection/balance/proc_stats.cc index bcdbd2d3b1..daca3907d5 100644 --- a/src/vt/vrt/collection/balance/proc_stats.cc +++ b/src/vt/vrt/collection/balance/proc_stats.cc @@ -81,6 +81,9 @@ std::unordered_map /*static*/ FILE* ProcStats::stats_file_ = nullptr; +/*static*/ std::vector + ProcStats::proc_subphase_data_ = {}; + /*static */ ProcStats::SubphaseLoadMapType const& ProcStats::getProcSubphaseLoad(PhaseType phase) { vtAssert(proc_subphase_data_.size() > phase, "Phase must exist in load data"); diff --git a/src/vt/vrt/collection/balance/proc_stats.h b/src/vt/vrt/collection/balance/proc_stats.h index f1340e9384..132473ae07 100644 --- a/src/vt/vrt/collection/balance/proc_stats.h +++ b/src/vt/vrt/collection/balance/proc_stats.h @@ -93,6 +93,7 @@ struct ProcStats { static std::unordered_map proc_temp_to_perm_; static std::unordered_map proc_perm_to_temp_; static std::vector proc_comm_; + static std::vector proc_subphase_data_; private: static FILE* stats_file_; static bool created_dir_;