From 18f0b76f2ec76bab1167f2eb6ab9d6b19840ba8d Mon Sep 17 00:00:00 2001 From: ClF3 Date: Mon, 4 Nov 2024 15:33:53 +0800 Subject: [PATCH] modified following the tips --- Part1-Timing/main.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Part1-Timing/main.c b/Part1-Timing/main.c index 1d95484..52bff0c 100644 --- a/Part1-Timing/main.c +++ b/Part1-Timing/main.c @@ -11,7 +11,9 @@ #define L1_SIZE 768*1024 #define L2_SIZE 16*1024*1024 #define L3_SIZE 64*1024*1024 -#define BUFF_SIZE 16*1024*1024 +#define REDUNDANCY 2 +#define BUFF_SIZE REDUNDANCY*16*1024*1024 +#define REPEAT 10 int main (int ac, char **av) { @@ -69,10 +71,13 @@ int main (int ac, char **av) { // Step 1: bring the target cache line into L1 by simply accessing // the line tmp = target_buffer[0]; - for(int j=0; j