Skip to content

Commit

Permalink
#2201: fixed the incorrect transfer type causing build error
Browse files Browse the repository at this point in the history
  • Loading branch information
ppebay authored and lifflander committed Nov 28, 2023
1 parent b6e6bca commit a7376ab
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 16 additions & 2 deletions src/vt/vrt/collection/balance/temperedlb/temperedlb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ void TemperedLB::doLBStages(LoadType start_imb) {
is_underloaded_ = true;
}

// Perform requested type of information stage
switch (inform_type_) {
case InformTypeEnum::SyncInform:
informSync();
Expand All @@ -571,7 +572,20 @@ void TemperedLB::doLBStages(LoadType start_imb) {
vtAbort("TemperedLB:: Unsupported inform type");
}

decide();
// Execute transfer stage
switch (transfer_type_) {
case TransferTypeEnum::Original:
originalTransfer();
break;
case TransferTypeEnum::Recursive:
vtAbort("TemperedLB:: Unimplemented transfer type: Recursive");
break;
case TransferTypeEnum::SwapClusters:
vtAbort("TemperedLB:: Unimplemented transfer type: SwapClusters");
break;
default:
vtAbort("TemperedLB:: Unsupported transfer type");
}

vt_debug_print(
verbose, temperedlb,
Expand Down Expand Up @@ -1219,7 +1233,7 @@ std::vector<TemperedLB::ObjIDType> TemperedLB::orderObjects(
return ordered_obj_ids;
}

void TemperedLB::decide() {
void TemperedLB::originalTransfer() {
auto lazy_epoch = theTerm()->makeEpochCollective("TemperedLB: decide");

// Initialize transfer and rejection counters
Expand Down
2 changes: 1 addition & 1 deletion src/vt/vrt/collection/balance/temperedlb/temperedlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ struct TemperedLB : BaseLB {
void doLBStages(LoadType start_imb);
void informAsync();
void informSync();
void decide();
void originalTransfer();
void migrate();

void propagateRound(uint8_t k_cur_async, bool sync, EpochType epoch = no_epoch);
Expand Down

0 comments on commit a7376ab

Please sign in to comment.