diff --git a/benchmarks/task-data.hpp b/benchmarks/task-data.hpp index 4174c22..38dce07 100644 --- a/benchmarks/task-data.hpp +++ b/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(); + const uint32_t size_count = j["task"]["size_count"].template get(); for (uint32_t i = 0; i < size_count; i++) { a.sizes.emplace_back(j["task"]["size"][i].template get()); } @@ -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 &v) const { +inline void ReadTaskData::AddToTaskVector(std::vector& v) const { for (const auto s : sizes) { TaskData t; t.size = s; @@ -91,6 +91,7 @@ inline void ReadTaskData::AddToTaskVector(std::vector &v) const { t.numa_node = numa_node; t.nnode_dst = nnode_dst; t.nnode_src = nnode_src; + v.emplace_back(t); } }