1. Strategies for cache and local memory management by global program transformation
- Author
-
William Jalby, Dennis Gannon, and Kyle A. Gallivan
- Subjects
Hardware_MEMORYSTRUCTURES ,Cache coloring ,Computer science ,Parallel computing ,Cache-oblivious algorithm ,Cache pollution ,Smart Cache ,Memory management ,Write-once ,Cache invalidation ,Bus sniffing ,Page cache ,Cache ,Cache algorithms ,Least frequently used - Abstract
In this paper we describe a method for using data dependence analysis to estimate cache and local memory demand in highly iterative scientific codes. The estimates take the form of a family of “reference” windows for each variable that reflects the current set of elements that should be kept in cache. It is shown that, in important special cases, we can estimate the size of the window and predict a lower bound on the number of cache hits. If the machine has local memory or cache that can be managed by the compiler, these estimates can be used to guide the management of this resource. It is also shown that these estimates can be used to guide program transformations in an attempt to optimize cache performance.
- Published
- 2014