Search NASASearch

NASA NTRS · 19910023530

Automatic blocking of nested loops

Abstract

Blocked algorithms have much better properties of data locality and therefore can be much more efficient than ordinary algorithms when a memory hierarchy is involved. On the other hand, they are very difficult to write and to tune for particular machines. The reorganization is considered of nested loops through the use of known program transformations in order to create blocked algorithms automatically. The program transformations used are strip mining, loop interchange, and a variant of loop skewing in which invertible linear transformations (with integer coordinates) of the loop indices are allowed. Some problems are solved concerning the optimal application of these transformations. It is shown, in a very general setting, how to choose a nearly optimal set of transformed indices. It is then shown, in one particular but rather frequently occurring situation, how to choose an optimal set of block sizes.

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Schreiber, Robert, Dongarra, Jack J.. 1990-08-01. Automatic blocking of nested loops. https://ntrs.nasa.gov/citations/19910023530

Cite the original work for its findings. Save a collection to share your selection of sources.