Browse Source

fix forgotten add to vector in AddToTaskVector of ReadTaskData

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

3
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) { 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++) { for (uint32_t i = 0; i < size_count; i++) {
a.sizes.emplace_back(j["task"]["size"][i].template get<uint32_t>()); a.sizes.emplace_back(j["task"]["size"][i].template get<uint32_t>());
} }
@ -91,6 +91,7 @@ inline void ReadTaskData::AddToTaskVector(std::vector<TaskData> &v) const {
t.numa_node = numa_node; t.numa_node = numa_node;
t.nnode_dst = nnode_dst; t.nnode_dst = nnode_dst;
t.nnode_src = nnode_src; t.nnode_src = nnode_src;
v.emplace_back(t);
} }
} }

Loading…
Cancel
Save