|
@ -20,7 +20,7 @@ |
|
|
|
|
|
|
|
|
#include "BenchmarkHelpers.cpp"
|
|
|
#include "BenchmarkHelpers.cpp"
|
|
|
|
|
|
|
|
|
#define MODE_PREFETCH
|
|
|
|
|
|
|
|
|
#define MODE_HBM
|
|
|
|
|
|
|
|
|
////////////////////////////////
|
|
|
////////////////////////////////
|
|
|
/// BENCHMARK SETUP
|
|
|
/// BENCHMARK SETUP
|
|
@ -43,10 +43,10 @@ constexpr char MODE_STRING[] = "prefetch"; |
|
|
#endif
|
|
|
#endif
|
|
|
#ifdef MODE_DRAM
|
|
|
#ifdef MODE_DRAM
|
|
|
constexpr size_t CHUNK_SIZE_B = 2_MiB; |
|
|
constexpr size_t CHUNK_SIZE_B = 2_MiB; |
|
|
constexpr uint32_t GROUP_COUNT = 4; |
|
|
|
|
|
constexpr uint32_t TC_SCANA = 4; |
|
|
|
|
|
|
|
|
constexpr uint32_t GROUP_COUNT = 8; |
|
|
|
|
|
constexpr uint32_t TC_SCANA = 2; |
|
|
constexpr uint32_t TC_SCANB = 0; |
|
|
constexpr uint32_t TC_SCANB = 0; |
|
|
constexpr uint32_t TC_AGGRJ = 2; |
|
|
|
|
|
|
|
|
constexpr uint32_t TC_AGGRJ = 1; |
|
|
constexpr bool PERFORM_CACHING = false; |
|
|
constexpr bool PERFORM_CACHING = false; |
|
|
constexpr bool YIELD_ON_CACHE_MISS = false; |
|
|
constexpr bool YIELD_ON_CACHE_MISS = false; |
|
|
constexpr bool DATA_IN_HBM = false; |
|
|
constexpr bool DATA_IN_HBM = false; |
|
@ -55,10 +55,10 @@ constexpr char MODE_STRING[] = "dram"; |
|
|
#endif
|
|
|
#endif
|
|
|
#ifdef MODE_HBM
|
|
|
#ifdef MODE_HBM
|
|
|
constexpr size_t CHUNK_SIZE_B = 2_MiB; |
|
|
constexpr size_t CHUNK_SIZE_B = 2_MiB; |
|
|
constexpr uint32_t GROUP_COUNT = 4; |
|
|
|
|
|
constexpr uint32_t TC_SCANA = 4; |
|
|
|
|
|
|
|
|
constexpr uint32_t GROUP_COUNT = 8; |
|
|
|
|
|
constexpr uint32_t TC_SCANA = 2; |
|
|
constexpr uint32_t TC_SCANB = 0; |
|
|
constexpr uint32_t TC_SCANB = 0; |
|
|
constexpr uint32_t TC_AGGRJ = 2; |
|
|
|
|
|
|
|
|
constexpr uint32_t TC_AGGRJ = 1; |
|
|
constexpr bool PERFORM_CACHING = false; |
|
|
constexpr bool PERFORM_CACHING = false; |
|
|
constexpr bool YIELD_ON_CACHE_MISS = false; |
|
|
constexpr bool YIELD_ON_CACHE_MISS = false; |
|
|
constexpr bool DATA_IN_HBM = true; |
|
|
constexpr bool DATA_IN_HBM = true; |
|
|