Memory Hierarchies

Review the memory mountain hands-on and look into the source code: In main() the function run() is called for each combination of size and stride which in turn calls fcyc2() and fcyc2_full().

What happens there to ensure that only the desired cache effects for the test function f are measured? Describe the mechanism and why it is necessary for accurate measurements in a short paragraph. Refer to the code and what you learned in the lecture about it.

In preparation for next weeks lecture on “Good Scientific Practice”, please read the pages 5-9 from the European Code of Conduct for Research Integrity.