diff --git a/qdp_project/src/Benchmark.cpp b/qdp_project/src/Benchmark.cpp index ea9bfea..32cda5f 100644 --- a/qdp_project/src/Benchmark.cpp +++ b/qdp_project/src/Benchmark.cpp @@ -157,6 +157,9 @@ void aggr_j(size_t gid, size_t tid) { if (data_ptr == nullptr) { data_ptr = chunk_ptr; } + else if (data_ptr == chunk_ptr) { + // prevent counting weak-accesses + } else { CACHE_HITS_[UniqueIndex(gid,tid)]++; } diff --git a/qdp_project/src/Configuration.hpp b/qdp_project/src/Configuration.hpp index c3f2af9..141c691 100644 --- a/qdp_project/src/Configuration.hpp +++ b/qdp_project/src/Configuration.hpp @@ -1,15 +1,15 @@ #pragma once -constexpr size_t WL_SIZE_B = 4_GiB; +constexpr size_t WL_SIZE_B = 1_GiB; constexpr uint32_t WARMUP_ITERATION_COUNT = 5; constexpr uint32_t ITERATION_COUNT = 5; #ifdef MODE_SIMPLE_PREFETCH constexpr uint32_t GROUP_COUNT = 8; constexpr size_t CHUNK_SIZE_B = 64_MiB; -constexpr uint32_t TC_SCANA = 2; -constexpr uint32_t TC_SCANB = 2; -constexpr uint32_t TC_AGGRJ = 1; +constexpr uint32_t TC_SCANA = 1; +constexpr uint32_t TC_SCANB = 1; +constexpr uint32_t TC_AGGRJ = 2; constexpr bool PERFORM_CACHING = true; constexpr bool STORE_B_IN_HBM = false; constexpr char MODE_STRING[] = "simple-prefetch";