Document Type
Working Paper
Date
1997
Keywords
compiler algorithm, algorithms, cache locality, nests
Language
English
Disciplines
Computer Sciences
Description/Abstract
This paper describes an algorithm to optimize cache locality in scientific codes on uniprocessor and multiprocessor machines. A distinctive characteristic of our algorithm is that it considers loop and data layout transformations in a unified framework. We illustrate through examples that our approach is very effective at reducing cache misses and tile size sensitivity of blocked loop nests; and can optimize nests for which optimization techniques based on loop transformations alone are not successful. An important special case is the one in which data layouts of some arrays are fixed and cannot be changed. We show how our algorithm can handle this case, and demonstrate how it can be used to optimize multiple loop nests.
Recommended Citation
Kandemir, Mahmut; Ramanujam, J.; and Choudhary, Alok, "A Compiler Algorithm for Optimizing Locality in Loop Nests" (1997). Electrical Engineering and Computer Science - All Scholarship. 31.
https://surface.syr.edu/eecs/31
Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.