Browse Source

fix forgotten add to vector in AddToTaskVector of ReadTaskData

master
Constantin Fürst 1 year ago
parent
commit
897e363f44
  1. 5
      benchmarks/task-data.hpp

5
benchmarks/task-data.hpp

@ -68,7 +68,7 @@ inline void to_json(nlohmann::json& j, const TaskData& a) {
}
inline void from_json(const nlohmann::json& j, ReadTaskData& a) {
const uint32_t size_count = j["tast"]["size_count"].template get<uint32_t>();
const uint32_t size_count = j["task"]["size_count"].template get<uint32_t>();
for (uint32_t i = 0; i < size_count; i++) {
a.sizes.emplace_back(j["task"]["size"][i].template get<uint32_t>());
}
@ -81,7 +81,7 @@ inline void from_json(const nlohmann::json& j, ReadTaskData& a) {
j["affinity"]["nnode_dst"].get_to(a.nnode_dst);
}
inline void ReadTaskData::AddToTaskVector(std::vector<TaskData> &v) const {
inline void ReadTaskData::AddToTaskVector(std::vector<TaskData>& v) const {
for (const auto s : sizes) {
TaskData t;
t.size = s;
@ -91,6 +91,7 @@ inline void ReadTaskData::AddToTaskVector(std::vector<TaskData> &v) const {
t.numa_node = numa_node;
t.nnode_dst = nnode_dst;
t.nnode_src = nnode_src;
v.emplace_back(t);
}
}

Loading…
Cancel
Save