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