Issue No.10 - October (2003 vol.14)
Georgios Goumas , IEEE
Maria Athanasaki , IEEE
Nectarios Koziris , IEEE Computer Society
<p><b>Abstract</b>—This paper presents a novel approach for the problem of generating tiled code for nested for-loops, transformed by a tiling transformation. Tiling or supernode transformation has been widely used to improve locality in multilevel memory hierarchies, as well as to efficiently execute loops onto parallel architectures. However, automatic code generation for tiled loops can be a very complex compiler work, especially when nonrectangular tile shapes and iteration space bounds are concerned. Our method considerably enhances previous work on rewriting tiled loops, by considering parallelepiped tiles and arbitrary iteration space shapes. In order to generate tiled code, we first enumerate all tiles containing points within the iteration space and, second, sweep all points within each tile. For the first subproblem, we refine upon previous results concerning the computation of new loop bounds of an iteration space that has been transformed by a nonunimodular transformation. For the second subproblem, we transform the initial parallelepiped tile into a rectangular one, in order to generate efficient code with the aid of a nonunimodular transformation matrix and its Hermite Normal Form (HNF). Experimental results show that the proposed method significantly accelerates the compilation process and generates much more efficient code.</p>
Loop tiling, supernodes, nonunimodular transformations, Fourier-Motzkin elimination, code generation.
Georgios Goumas, Maria Athanasaki, Nectarios Koziris, "An Efficient Code Generation Technique for Tiled Iteration Spaces", IEEE Transactions on Parallel & Distributed Systems, vol.14, no. 10, pp. 1021-1034, October 2003, doi:10.1109/TPDS.2003.1239870