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