From 845e812ca7887889a65aa3f58c579c2eac89704f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Thu, 25 Jan 2024 15:19:10 +0100 Subject: [PATCH] set the correct sum check which was inverted by querry type --- qdp_project/src/Benchmark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qdp_project/src/Benchmark.cpp b/qdp_project/src/Benchmark.cpp index 74f9d56..5b3e84b 100644 --- a/qdp_project/src/Benchmark.cpp +++ b/qdp_project/src/Benchmark.cpp @@ -346,7 +346,7 @@ int main() { const auto time_end = std::chrono::steady_clock::now(); const uint64_t result_actual = DATA_DST_[0]; - const uint64_t result_expected = COMPLEX_QUERY ? sum_check(CMP_A, DATA_A_, DATA_B_, WL_SIZE_B) : sum_check_complex(CMP_A, CMP_B, DATA_A_, DATA_B_, WL_SIZE_B); + const uint64_t result_expected = COMPLEX_QUERY ? sum_check_complex(CMP_A, CMP_B, DATA_A_, DATA_B_, WL_SIZE_B) : sum_check(CMP_A, DATA_A_, DATA_B_, WL_SIZE_B); std::cout << "Result Expected: " << result_expected << ", Result Actual: " << result_actual << std::endl;