|
@ -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>()); |
|
|
} |
|
|
} |
|
@ -81,7 +81,7 @@ inline void from_json(const nlohmann::json& j, ReadTaskData& a) { |
|
|
j["affinity"]["nnode_dst"].get_to(a.nnode_dst); |
|
|
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) { |
|
|
for (const auto s : sizes) { |
|
|
TaskData t; |
|
|
TaskData t; |
|
|
t.size = s; |
|
|
t.size = s; |
|
@ -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); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|