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); } } }