Skip to content

Commit

Permalink
#2229: Rename get method for phase attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
thearusable committed Feb 16, 2024
1 parent a621055 commit 5a940b7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/vt/vrt/collection/balance/lb_data_holder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ std::unique_ptr<nlohmann::json> LBDataHolder::toJson(PhaseType phase) const {
} else if (std::holds_alternative<std::string>(value)) {
j["tasks"][i]["attributes"][key] = std::get<std::string>(value);
}
}
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/vt/vrt/collection/balance/node_lb_data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ NodeLBData::getUserData() const {
}

std::unordered_map<PhaseType, DataMapType> const*
NodeLBData::getUserAttributes() const {
NodeLBData::getPhaseAttributes() const {
return &lb_data_->node_user_attributes_;
}

Expand Down
2 changes: 1 addition & 1 deletion src/vt/vrt/collection/balance/node_lb_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ struct NodeLBData : runtime::component::Component<NodeLBData> {
*
* \return an observer pointer to the user-defined attributes
*/
std::unordered_map<PhaseType, DataMapType> const* getUserAttributes() const;
std::unordered_map<PhaseType, DataMapType> const* getPhaseAttributes() const;

/**
* \internal \brief Get stored object comm data for a specific phase
Expand Down
2 changes: 1 addition & 1 deletion src/vt/vrt/collection/types/storage/storable.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void Storable::valInsert(std::string const& str, U&& u) {

template <typename U>
void Storable::valInsert(
std::string const& str, U&& u, bool dump_to_json, bool provide_to_lb, bool dump_to_attributes
std::string const& str, U&& u, bool dump_to_json, bool provide_to_lb, bool dump_to_attributes
) {
map_.emplace(
std::piecewise_construct,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/collection/test_lb.extended.cc
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ TEST_P(TestDumpAttributesFieldData, test_dump_attributes_json) {
elm_ptr->valInsert("intSample", 123, false, false, is_attribute);
elm_ptr->valInsert("doubleSample", 123.456, false, false, is_attribute);
elm_ptr->valInsert("stringSample", std::string("abc"), false, false, is_attribute);

elm_ptr->collectAttributes(
[&](std::string const& key, auto val) {
lbdh.node_user_attributes_[phase][elm_id][key] = val->toVariant();
Expand Down

0 comments on commit 5a940b7

Please sign in to comment.