|
|
@ -3,7 +3,7 @@ |
|
|
|
#include "utils/memory_literals.h"
|
|
|
|
|
|
|
|
#ifndef MODE_SET_BY_CMAKE
|
|
|
|
#define MODE_PREFETCH
|
|
|
|
#define MODE_DISTPREFETCH
|
|
|
|
#endif
|
|
|
|
|
|
|
|
constexpr size_t WL_SIZE_B = 4_GiB; |
|
|
@ -13,9 +13,9 @@ constexpr int MEM_NODE_HBM = 8; |
|
|
|
constexpr int MEM_NODE_DRAM = 0; |
|
|
|
|
|
|
|
#ifdef MODE_PREFETCH
|
|
|
|
constexpr uint32_t GROUP_COUNT = 16; |
|
|
|
constexpr uint32_t GROUP_COUNT = 32; |
|
|
|
constexpr size_t CHUNK_SIZE_B = 8_MiB; |
|
|
|
constexpr uint32_t TC_SCANA = 2; |
|
|
|
constexpr uint32_t TC_SCANA = 1; |
|
|
|
constexpr uint32_t TC_SCANB = 1; |
|
|
|
constexpr uint32_t TC_AGGRJ = 1; |
|
|
|
constexpr bool PERFORM_CACHING = true; |
|
|
@ -23,9 +23,20 @@ constexpr int MEM_NODE_A = 0; |
|
|
|
constexpr int MEM_NODE_B = 0; |
|
|
|
constexpr char MODE_STRING[] = "prefetch"; |
|
|
|
#endif
|
|
|
|
#ifdef MODE_DISTPREFETCH
|
|
|
|
constexpr uint32_t GROUP_COUNT = 32; |
|
|
|
constexpr size_t CHUNK_SIZE_B = 8_MiB; |
|
|
|
constexpr uint32_t TC_SCANA = 1; |
|
|
|
constexpr uint32_t TC_SCANB = 1; |
|
|
|
constexpr uint32_t TC_AGGRJ = 1; |
|
|
|
constexpr bool PERFORM_CACHING = true; |
|
|
|
constexpr int MEM_NODE_A = 0; |
|
|
|
constexpr int MEM_NODE_B = 1; |
|
|
|
constexpr char MODE_STRING[] = "distprefetch"; |
|
|
|
#endif
|
|
|
|
#ifdef MODE_DRAM
|
|
|
|
constexpr size_t CHUNK_SIZE_B = 2_MiB; |
|
|
|
constexpr uint32_t GROUP_COUNT = 16; |
|
|
|
constexpr uint32_t GROUP_COUNT = 32; |
|
|
|
constexpr uint32_t TC_SCANA = 2; |
|
|
|
constexpr uint32_t TC_SCANB = 0; |
|
|
|
constexpr uint32_t TC_AGGRJ = 1; |
|
|
@ -36,8 +47,8 @@ constexpr char MODE_STRING[] = "dram"; |
|
|
|
#endif
|
|
|
|
#ifdef MODE_HBM
|
|
|
|
constexpr size_t CHUNK_SIZE_B = 2_MiB; |
|
|
|
constexpr uint32_t GROUP_COUNT = 16; |
|
|
|
constexpr uint32_t TC_SCANA = 2; |
|
|
|
constexpr uint32_t GROUP_COUNT = 32; |
|
|
|
constexpr uint32_t TC_SCANA = 4; |
|
|
|
constexpr uint32_t TC_SCANB = 0; |
|
|
|
constexpr uint32_t TC_AGGRJ = 1; |
|
|
|
constexpr bool PERFORM_CACHING = false; |
|
|
|