Lecture

Memory Hierarchy: Line-by-Line Performance Calculation

Description

This lecture provides a practical complement to the theoretical course on memory hierarchy and spatial locality, demonstrating the performance difference between calculating the sum of matrix elements line-by-line and column-by-column. By leveraging spatial locality, accessing data line-by-line results in better program performance compared to column-by-column access. The instructor illustrates this concept through code examples, measuring execution times for both methods and highlighting the significant impact of cache misses on performance.

About this result
This page is automatically generated and may contain information that is not correct, complete, up-to-date, or relevant to your search query. The same applies to every other page on this website. Please make sure to verify the information with EPFL's official sources.