Skip to content

Commit

Permalink
#1024: Handle collective bcast CommCategory inside node_stats to avoi…
Browse files Browse the repository at this point in the history
…d the warning
  • Loading branch information
JacobDomagala authored and Braden Mailloux committed Oct 15, 2020
1 parent 25f350f commit 45b1a58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vt/vrt/collection/balance/node_stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ getRecvSendDirection(CommKeyType const& comm) {
case CommCategory::CollectionToNode:
case CommCategory::CollectionToNodeBcast:
return std::make_pair(comm.toNode(), comm.fromObj());

// Comm stats are not recorded for collective bcast
// this case is just to avoid warning of not handled enum
case CommCategory::CollectiveNodeToCollectionEdges:
return std::make_pair(ElementIDType{}, ElementIDType{});
}

vtAssert(false, "Invalid balance::CommCategory enum value");
Expand Down

0 comments on commit 45b1a58

Please sign in to comment.