Skip to content

Commit

Permalink
#1934: Remove leftovers from previous implementation of the circular …
Browse files Browse the repository at this point in the history
…buffer
  • Loading branch information
thearusable committed Sep 19, 2024
1 parent 509662f commit 6b6bf80
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions src/vt/vrt/collection/balance/lb_data_holder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -608,10 +608,6 @@ void LBDataHolder::readMetadata(nlohmann::json const& j) {
min = std::min(min, *identical_phases_.begin());
max = std::max(max, *identical_phases_.rbegin());
}
if (skipped_phases_.size() > 0) {
min = std::min(min, *skipped_phases_.begin());
max = std::max(max, *skipped_phases_.rbegin());
}

auto phases = j["phases"];
if (phases.is_array()) {
Expand Down
2 changes: 1 addition & 1 deletion src/vt/vrt/collection/balance/lb_data_restart_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void LBDataRestartReader::readHistory(LBDataHolder const& lbdh) {

PhaseType last_found_phase = 0;
for (PhaseType phase = 0; phase < num_phases_; phase++) {
if (lbdh.node_data_.contains(phase) && lbdh.node_data_.at(phase).size() > 0) {
if (lbdh.node_data_.contains(phase)) {
last_found_phase = phase;
for (auto const& obj : lbdh.node_data_.at(phase)) {
if (obj.first.isMigratable()) {
Expand Down
4 changes: 0 additions & 4 deletions tests/unit/lb/test_offlinelb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,6 @@ TEST_F(TestOfflineLB, test_offlinelb_2) {
dh.node_data_[i][elms[j]] = LoadSummary{ static_cast<double>(i + j) + 3};
}
}
else {
// add empty element - circular buffer expects continuous phases
dh.node_data_[i];
}
}

using JSONAppender = util::json::Appender<std::stringstream>;
Expand Down

0 comments on commit 6b6bf80

Please sign in to comment.