DocumentCode :
583160
Title :
Optimizing Expression Selection for Lookup Table Program Transformation
Author :
Wilcox, Chris ; Strout, Michelle Mills ; Bieman, James M.
Author_Institution :
Comput. Sci. Dept., Colorado State Univ., Fort Collins, CO, USA
fYear :
2012
fDate :
23-24 Sept. 2012
Firstpage :
84
Lastpage :
93
Abstract :
Scientific programmers can speed up function evaluation by precomputing and storing function results in lookup table (LUTs), thereby replacing costly evaluation code with an inexpensive memory access. A code transform that replaces computation with LUT code can improve performance, however, accuracy is reduced because of error inherent in reconstructing values from LUT data. LUT transforms are commonly used to approximate expensive elementary functions. The current practice is for software developers to (1) manually identify expressions that can benefit from a LUT transform, (2) modify the code by hand to implement the LUT transform, and (3) run experiments to determine if the resulting error is within application requirements. This approach reduces productivity, obfuscates code, and limits programmer control over accuracy and performance. We propose source code analysis and program transformation to substantially automate the application of LUT transforms. Our approach uses a novel optimization algorithm that selects Pareto optimal sets of expressions that benefit most from LUT transformation, based on error and performance estimates. We demonstrate our methodology with the Mesa tool, which achieves speedups of 1.4-6.9× on scientific codes while managing introduced error. Our tool makes the programmer more productive and improves the chances of finding an effective solution.
Keywords :
Pareto optimisation; performance evaluation; program compilers; source coding; table lookup; LUT code; LUT data; LUT transforms; Mesa tool; Pareto optimal sets; code transform; evaluation code; expensive elementary functions; expression selection optimization; function evaluation; function precomputing; function storing; inexpensive memory access; lookup table program transformation; program transformation; programmer control; scientific programmers; software developers; source code analysis; Accuracy; Equations; Interpolation; Mathematical model; Optimization; Table lookup; Transforms; Mesa tool; code generation; error analysis; fuzzy reuse; lookup table; memoization; performance optimization; scientific computing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Source Code Analysis and Manipulation (SCAM), 2012 IEEE 12th International Working Conference on
Conference_Location :
Trento
Print_ISBN :
978-1-4673-2398-7
Type :
conf
DOI :
10.1109/SCAM.2012.12
Filename :
6392105
Link To Document :
بازگشت