Skip to content

Commit

Permalink
#2201: temperedlb: fix bug where some ranks don't participate if they…
Browse files Browse the repository at this point in the history
… don't have user-defined blocks
  • Loading branch information
lifflander committed Dec 5, 2023
1 parent 262b37a commit 1bbdf23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vt/vrt/collection/balance/temperedlb/temperedlb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ void TemperedLB::readClustersMemoryData() {
obj, shared_id, shared_bytes
);

has_memory_data_ = true;
obj_shared_block_[obj] = shared_id;
obj_working_bytes_[obj] = working_bytes;
shared_block_size_[shared_id] = shared_bytes;
Expand Down Expand Up @@ -647,6 +646,10 @@ void TemperedLB::doLBStages(LoadType start_imb) {
// Read in memory information if it's available before be do any trials
readClustersMemoryData();

if (transfer_type_ == TransferTypeEnum::SwapClusters) {
has_memory_data_ = true;
}

for (trial_ = 0; trial_ < num_trials_; ++trial_) {
// Clear out data structures
selected_.clear();
Expand Down

0 comments on commit 1bbdf23

Please sign in to comment.