I ran into a situation where testing a newer CPU had larger L3 than the hard-coded SIZE (32MB). Rather than simply change this value in the code, I made it an argument so it can be be varied at runtime. While I was in there I did the same with BLOCKSIZE, LATBENCH_COUNT, and latbench_size for additional runtime flexibility. The original hard-coded values are used as defaults.
I ran into a situation where testing a newer CPU had larger L3 than the hard-coded SIZE (32MB). Rather than simply change this value in the code, I made it an argument so it can be be varied at runtime. While I was in there I did the same with BLOCKSIZE, LATBENCH_COUNT, and latbench_size for additional runtime flexibility. The original hard-coded values are used as defaults.