Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

Parameterizing loop fusion for automated empirical tuning

Technical Report ·
DOI:https://doi.org/10.2172/890608· OSTI ID:890608

Traditional compilers are limited in their ability to optimize applications for different architectures because statically modeling the effect of specific optimizations on different hardware implementations is difficult. Recent research has been addressing this issue through the use of empirical tuning, which uses trial executions to determine the optimization parameters that are most effective on a particular hardware platform. In this paper, we investigate empirical tuning of loop fusion, an important transformation for optimizing a significant class of real-world applications. In spite of its usefulness, fusion has attracted little attention from previous empirical tuning research, partially because it is much harder to configure than transformations like loop blocking and unrolling. This paper presents novel compiler techniques that extend conventional fusion algorithms to parameterize their output when optimizing a computation, thus allowing the compiler to formulate the entire configuration space for loop fusion using a sequence of integer parameters. The compiler can then employ an external empirical search engine to find the optimal operating point within the space of legal fusion configurations and generate the final optimized code using a simple code transformation system. We have implemented our approach within our compiler infrastructure and conducted preliminary experiments using a simple empirical search strategy. Our results convey new insights on the interaction of loop fusion with limited hardware resources, such as available registers, while confirming conventional wisdom about the effectiveness of loop fusion in improving application performance.

Research Organization:
Lawrence Livermore National Laboratory (LLNL), Livermore, CA
Sponsoring Organization:
USDOE
DOE Contract Number:
W-7405-ENG-48
OSTI ID:
890608
Report Number(s):
UCRL-TR-217808
Country of Publication:
United States
Language:
English

Similar Records

POET: Parameterized Optimization for Empirical Tuning
Conference · Sun Jan 28 23:00:00 EST 2007 · OSTI ID:908082

Final Report A Multi-Language Environment For Programmable Code Optimization and Empirical Tuning
Technical Report · Fri Nov 22 23:00:00 EST 2013 · OSTI ID:1124136

Empirical Performance Model-Driven Data Layout Optimization and Library Call Selection for Tensor Contraction Expressions
Journal Article · Wed Feb 29 23:00:00 EST 2012 · Journal of Parallel and Distributed Computing, 72(3):338-362 · OSTI ID:1036064