Title
Optimizing stencil code via locality of computation
Abstract
Stencil computation is a performance critical kernel used in scientific and engineering applications. We define a term of locality of computation to guide stencil optimization by either architecture or compiler. Being analogous to locality of reference, computational behavior is also classified into spatial locality and temporal locality. This paper develops equivalent computation elimination (ECE) approach in multi-level loop for exploiting temporal locality of computation. The strength of ECE lies on an intermediate-based searching algorithm to eliminate inter-iteration computational redundancies of all possible combination and a multiple dimensions replacement algorithm to replace redundant computation across loops of multiple dimensions. We implemented ECE in ROSE compiler infrastructure. The experiment shows that ECE improves performance by 20% on average due to the consciousness of temporal locality.
Year
DOI
Venue
2014
10.1145/2628071.2628121
PACT
Keywords
Field
DocType
algorithms,compilers,optimization,theory
Kernel (linear algebra),Locality,Search algorithm,Locality of reference,Computer science,Parallel computing,Stencil,Stencil code,Compiler,Computation
Conference
ISSN
ISBN
Citations 
1089-795X
978-1-5090-6607-0
4
PageRank 
References 
Authors
0.39
4
2
Name
Order
Citations
PageRank
Yulong Luo1181.63
Guangming Tan243648.90