Skip to content

Commit

Permalink
#2033: lb: fix bugs in LBDataHolder with assertions too strong
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Dec 7, 2022
1 parent 8e1f80d commit 8b37df9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vt/vrt/collection/balance/lb_data_holder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ std::unique_ptr<nlohmann::json> LBDataHolder::toJson(PhaseType phase) const {
ElementIDStruct id = elm.first;
TimeType time = elm.second.whole_phase_load;
j["tasks"][i]["resource"] = "cpu";
j["tasks"][i]["node"] = theContext()->getNode();
j["tasks"][i]["node"] = id.getCurrNode();
j["tasks"][i]["time"] = time;
if (user_defined_json_.find(phase) != user_defined_json_.end()) {
auto &user_def_this_phase = user_defined_json_.at(phase);
Expand Down Expand Up @@ -183,7 +183,6 @@ LBDataHolder::LBDataHolder(nlohmann::json const& j) {
auto etype = task["entity"]["type"];
vtAssertExpr(time.is_number());
vtAssertExpr(node.is_number());
vtAssertExpr(node == this_node);

if (etype == "object") {
auto object = task["entity"]["id"];
Expand Down

0 comments on commit 8b37df9

Please sign in to comment.