Browse Source

wait less for task launch and dont write iterations complete out

master
Constantin Fürst 11 months ago
parent
commit
f905ee77eb
  1. 3
      benchmarks/benchmark.hpp
  2. 1
      benchmarks/util/task-data.hpp

3
benchmarks/benchmark.hpp

@ -38,7 +38,6 @@ void* thread_function(void* argp) {
std::memset(dst, 0, args->size); std::memset(dst, 0, args->size);
args->status = dml::status_code::ok; args->status = dml::status_code::ok;
args->rep_completed = 0;
LAUNCH_.wait(); LAUNCH_.wait();
@ -107,7 +106,7 @@ std::vector<uint64_t> execute_dml_memcpy(std::vector<TaskData>& args, const uint
} }
using namespace std::chrono_literals; using namespace std::chrono_literals;
std::this_thread::sleep_for(1000ms);
std::this_thread::sleep_for(100ms);
const auto time_start = std::chrono::steady_clock::now(); const auto time_start = std::chrono::steady_clock::now();

1
benchmarks/util/task-data.hpp

@ -28,7 +28,6 @@ inline void to_json(nlohmann::json& j, const TaskData& a) {
j["affinity"]["node"] = a.numa_node; j["affinity"]["node"] = a.numa_node;
j["affinity"]["nnode_src"] = a.nnode_src; j["affinity"]["nnode_src"] = a.nnode_src;
j["affinity"]["nnode_dst"] = a.nnode_dst; j["affinity"]["nnode_dst"] = a.nnode_dst;
j["report"]["iterations_completed"] = a.rep_completed;
j["report"]["status"] = StatusCodeToString(a.status); j["report"]["status"] = StatusCodeToString(a.status);
} }

Loading…
Cancel
Save