From bc1c3d00964aa825d5db1e2115f40f7a928e1fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Wed, 7 Feb 2024 22:14:24 +0100 Subject: [PATCH] fix block size for access by cacher in scanb --- qdp_project/src/Benchmark.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qdp_project/src/Benchmark.cpp b/qdp_project/src/Benchmark.cpp index e192a79..f8a678e 100644 --- a/qdp_project/src/Benchmark.cpp +++ b/qdp_project/src/Benchmark.cpp @@ -71,11 +71,13 @@ void scan_b(size_t gid, size_t tid) { } } else { + constexpr size_t SUBCHUNK_SIZE_B = CHUNK_SIZE_B / TC_AGGRJ; + for (size_t i = 0; i < RUN_COUNT; i++) { const size_t chunk_index = get_chunk_index(gid, i); - uint64_t* chunk_ptr = get_chunk(DATA_B_, chunk_index, tid); + uint64_t* chunk_ptr = get_chunk(DATA_B_, chunk_index, tid); - CACHE_.Access(reinterpret_cast(chunk_ptr), CHUNK_SIZE_B); + CACHE_.Access(reinterpret_cast(chunk_ptr), SUBCHUNK_SIZE_B); } } }