From f1ac2a07b22460182f14c88783c9c042a7867dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Tue, 23 Jan 2024 21:45:55 +0100 Subject: [PATCH] write result to ofile in qdp bench --- qdp_project/src/Benchmark.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qdp_project/src/Benchmark.cpp b/qdp_project/src/Benchmark.cpp index d5cc15c..163438f 100644 --- a/qdp_project/src/Benchmark.cpp +++ b/qdp_project/src/Benchmark.cpp @@ -150,7 +150,7 @@ int main() { const std::string ofname = "results/qdp-xeonmax-simpleq-" + std::string(MODE_STRING) + "-tca" + std::to_string(TC_SCANA) + "-tcb" + std::to_string(TC_SCANB) + "-tcj" + std::to_string(TC_AGGRJ) + "-tmul" + std::to_string(GROUP_COUNT) + "-wl" + std::to_string(WL_SIZE_B) + "-cs" + std::to_string(CHUNK_SIZE_B) + ".csv"; std::ofstream fout(ofname); - fout << "run;time;" << std::endl; + fout << "run;time;result[0];" << std::endl; if constexpr (DATA_IN_HBM) { DATA_A_ = (uint64_t*) numa_alloc_onnode(WL_SIZE_B, cache_node); @@ -209,7 +209,7 @@ int main() { const auto time_end = std::chrono::steady_clock::now(); if (i >= WARMUP_ITERATION_COUNT) { - fout << i << ";" << std::chrono::duration_cast(time_end - time_start).count() << std::endl; + fout << i << ";" << std::chrono::duration_cast(time_end - time_start).count() << std::endl << ";" << DATA_DST_[0] << ";" << std::endl; } for (std::barrier* b : BARRIERS_) {