|
@ -4,8 +4,8 @@ |
|
|
|
|
|
|
|
|
#include "json/single_include/nlohmann/json.hpp"
|
|
|
#include "json/single_include/nlohmann/json.hpp"
|
|
|
|
|
|
|
|
|
#include "statuscode-tostring.hpp"
|
|
|
|
|
|
#include "barrier.hpp"
|
|
|
#include "barrier.hpp"
|
|
|
|
|
|
#include "dml-helper.hpp"
|
|
|
|
|
|
|
|
|
struct TaskData { |
|
|
struct TaskData { |
|
|
// thread placement / engine selection
|
|
|
// thread placement / engine selection
|
|
@ -21,12 +21,9 @@ struct TaskData { |
|
|
// thread output
|
|
|
// thread output
|
|
|
dml::status_code status; |
|
|
dml::status_code status; |
|
|
// average run duration in microseconds
|
|
|
// average run duration in microseconds
|
|
|
double combined_duration; |
|
|
|
|
|
double submit_duration; |
|
|
|
|
|
double complete_duration; |
|
|
|
|
|
double combined_duration_stdev; |
|
|
|
|
|
double submit_duration_stdev; |
|
|
|
|
|
double complete_duration_stdev; |
|
|
|
|
|
|
|
|
std::vector<double> combined_duration; |
|
|
|
|
|
std::vector<double> submit_duration; |
|
|
|
|
|
std::vector<double> complete_duration; |
|
|
// completed iterations
|
|
|
// completed iterations
|
|
|
uint32_t rep_completed; |
|
|
uint32_t rep_completed; |
|
|
// set by execution
|
|
|
// set by execution
|
|
@ -45,9 +42,6 @@ inline void to_json(nlohmann::json& j, const TaskData& a) { |
|
|
j["report"]["time"]["completion_avg"] = a.complete_duration; |
|
|
j["report"]["time"]["completion_avg"] = a.complete_duration; |
|
|
j["report"]["time"]["submission_avg"] = a.submit_duration; |
|
|
j["report"]["time"]["submission_avg"] = a.submit_duration; |
|
|
j["report"]["time"]["combined_avg"] = a.combined_duration; |
|
|
j["report"]["time"]["combined_avg"] = a.combined_duration; |
|
|
j["report"]["time"]["completion_stdev"] = a.complete_duration_stdev; |
|
|
|
|
|
j["report"]["time"]["submission_stdev"] = a.submit_duration_stdev; |
|
|
|
|
|
j["report"]["time"]["combined_stdev"] = a.combined_duration_stdev; |
|
|
|
|
|
j["report"]["iterations_completed"] = a.rep_completed; |
|
|
j["report"]["iterations_completed"] = a.rep_completed; |
|
|
j["report"]["status"] = StatusCodeToString(a.status); |
|
|
j["report"]["status"] = StatusCodeToString(a.status); |
|
|
} |
|
|
} |
|
|