Skip to content

Commit

Permalink
Merge pull request #1681 from DARMA-tasking/1680-fix-migration-count
Browse files Browse the repository at this point in the history
#1680: lb: only add to migration if its actually a migration
  • Loading branch information
lifflander authored and cz4rs committed Mar 1, 2022
2 parents 9da67c8 + d4aec8b commit c98f3c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vt/vrt/collection/balance/baselb/baselb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ void BaseLB::notifyNewHostNodeOfObjectsArriving(
}

void BaseLB::migrateObjectTo(ObjIDType const obj_id, NodeType const to) {
transfers_.push_back(TransferDestType{obj_id, to});
if (obj_id.curr_node != to) {
transfers_.push_back(TransferDestType{obj_id, to});
}
}

void BaseLB::finalize(CountMsg* msg) {
Expand Down

0 comments on commit c98f3c6

Please sign in to comment.