Precise data locality optimization of nested loops - Archive ouverte HAL Accéder directement au contenu
Article Dans Une Revue Journal of Supercomputing Année : 2002

Precise data locality optimization of nested loops

Résumé

A significant source for enhancing application performance and for reducing power consumption in embedded processor applications is to improve the usage of the memory hierarchy. In this paper, a temporal and spatial locality optimization framework of nested loops is proposed, driven by parameterized cost functions. The considered loops can be imperfectly nested. New data layouts are propagated through the connected references and through the loop nests as constraints for optimizing the next connected reference in the same nest or in the other ones. Unlike many existing methods, special attention is paid to TLB (Translation Lookaside Buffer) effectiveness since TLB misses can take from tens to hundreds of processor cycles. Our approach only considers active data, that is, array elements that are actually accessed by a loop, in order to prevent useless memory loads and take advantage of storage compression and temporal locality. Moreover, the same data transformation is not necessarily applied to a whole array. Depending on the referenced data subsets, the transformation can result in different data layouts for a same array. This can significantly improve the performance since a priori incompatible references can be simultaneously optimized. Finally, the process does not only consider the innermost loop level but all levels. Hence, large strides when control returns to the enclosing loop are avoided in several cases, and better optimization is provided in the case of a small index range of the innermost loop.

Dates et versions

inria-00534831 , version 1 (10-11-2010)

Identifiants

Citer

Vincent Loechner, Benoit Meister, Philippe Clauss. Precise data locality optimization of nested loops. Journal of Supercomputing, 2002, 21 (1), pp.37-76. ⟨10.1023/A:1013535431127⟩. ⟨inria-00534831⟩

Collections

CNRS SITE-ALSACE
57 Consultations
0 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More