DocumentCode
2235662
Title
Loop Optimization using Hierarchical Compilation and Kernel Decomposition
Author
Barthou, Denis ; Donadio, Sebastien ; Carribault, Patrick ; Duchateau, Alexandre ; Jalby, William
Author_Institution
PRiSM Lab., Univ. de Versailles Saint-Quentin
fYear
2007
fDate
11-14 March 2007
Firstpage
170
Lastpage
184
Abstract
The increasing complexity of hardware features for recent processors makes high performance code generation very challenging. In particular, several optimization targets have to be pursued simultaneously (minimizing L1/L2/L3/TLB misses and maximizing instruction level parallelism). Very often, these optimization goals impose different and contradictory constraints on the transformations to be applied. We propose a new hierarchical compilation approach for the generation of high performance code relying on the use of state-of-the-art compilers. This approach is not application-dependent and do not require any assembly hand-coding. It relies on the decomposition of the original loop nest into simpler kernels, typically 1D to 2D loops, much simpler to optimize. We successfully applied this approach to optimize dense matrix muliply primitives (not only for the square case but to the more general rectangular cases) and convolution. The performance of the optimized codes on Itanium 2 and Pentium 4 architectures outperforms ATLAS and in most cases, matches hand-tuned vendor libraries (e.g. MKL)
Keywords
optimising compilers; program control structures; ATLAS; Itanium 2 architectures; Pentium 4 architectures; dense matrix muliply primitives; hardware feature complexity; hierarchical compilation; high performance code generation; kernel decomposition; loop optimization; optimized codes; Assembly; Constraint optimization; Costs; Hardware; Kernel; Laboratories; Libraries; Optimizing compilers; Phased arrays; Tiles;
fLanguage
English
Publisher
ieee
Conference_Titel
Code Generation and Optimization, 2007. CGO '07. International Symposium on
Conference_Location
San Jose, CA
Print_ISBN
0-7695-2764-7
Type
conf
DOI
10.1109/CGO.2007.22
Filename
4145113
Link To Document