Skip to content

Commit

Permalink
#708: lb: add ProcStats subphase vector (missed in rebase)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Jul 15, 2020
1 parent 51a4208 commit caa15be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vt/vrt/collection/balance/proc_stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ std::unordered_map<ElementIDType,ProcStats::MigrateFnType>

/*static*/ FILE* ProcStats::stats_file_ = nullptr;

/*static*/ std::vector<ProcStats::SubphaseLoadMapType>
ProcStats::proc_subphase_data_ = {};

/*static */ ProcStats::SubphaseLoadMapType const&
ProcStats::getProcSubphaseLoad(PhaseType phase) {
vtAssert(proc_subphase_data_.size() > phase, "Phase must exist in load data");
Expand Down
1 change: 1 addition & 0 deletions src/vt/vrt/collection/balance/proc_stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ struct ProcStats {
static std::unordered_map<ElementIDType,ElementIDType> proc_temp_to_perm_;
static std::unordered_map<ElementIDType,ElementIDType> proc_perm_to_temp_;
static std::vector<CommMapType> proc_comm_;
static std::vector<SubphaseLoadMapType> proc_subphase_data_;
private:
static FILE* stats_file_;
static bool created_dir_;
Expand Down

0 comments on commit caa15be

Please sign in to comment.