diff --git a/qdp_project/src/Benchmark.cpp b/qdp_project/src/Benchmark.cpp index 0c1cb2a..0b24cb9 100644 --- a/qdp_project/src/Benchmark.cpp +++ b/qdp_project/src/Benchmark.cpp @@ -163,10 +163,9 @@ int main() { CACHE_.SetFlags(cache_flags); CACHE_.Init(CachePlacementPolicy, CopyMethodPolicy, MemoryAllocator_Allocate, MemoryAllocator_Free); - for (uint32_t i = 0; i < GROUP_COUNT * TC_AGGRJ; i++) { + for (uint32_t i = 0; i < GROUP_COUNT * TC_AGGRJ * RUN_COUNT; i++) { void* ptr = numa_alloc_onnode(AGGRJ_CHUNK_SIZE_B, MEM_NODE_HBM); cache_memory_locations.emplace_back(ptr); - CACHE_LOCATIONS_.push(reinterpret_cast(ptr)); memset(ptr, 0xAB, AGGRJ_CHUNK_SIZE_B); } } @@ -178,6 +177,10 @@ int main() { std::promise launch_promise; LAUNCH_ = launch_promise.get_future(); + for (void* ptr : cache_memory_locations) { + CACHE_LOCATIONS_.push(reinterpret_cast(ptr)); + } + std::vector filter_pool; std::vector copy_pool; std::vector agg_pool;