Browse Source

fix block size for access by cacher in scanb

master
Constantin Fürst 11 months ago
parent
commit
bc1c3d0096
  1. 6
      qdp_project/src/Benchmark.cpp

6
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<TC_SCANB>(DATA_B_, chunk_index, tid);
uint64_t* chunk_ptr = get_chunk<TC_AGGRJ>(DATA_B_, chunk_index, tid);
CACHE_.Access(reinterpret_cast<uint8_t*>(chunk_ptr), CHUNK_SIZE_B);
CACHE_.Access(reinterpret_cast<uint8_t*>(chunk_ptr), SUBCHUNK_SIZE_B);
}
}
}

Loading…
Cancel
Save