Proceedings of the IEEE · 2005 · 153 citations · 29 references
ComputingComputer ScienceHigh-performance ComputingCompilersComputer ArchitectureParallel ComputingAlgorithm AnalysisParallel Performance AnalysisPerformance Bottleneck AnalysisPerformance ModelingPerformance OptimizationPerformance TuningAnalytical ModelsGlobal Search AlgorithmsHigh-performance Computing OptimizationLoop UnrollingMeasurement Of Relative PerformanceProgram OptimizationRelative Performance AnalysisSearch Parameter Optimization
Optimizing parameters such as tile sizes and loop unrolling is essential for program performance, yet while traditional compilers rely on simple analytical models, library generators like ATLAS perform exhaustive search, and it is widely believed that model-driven approaches cannot match search-based empirical optimization, though quantitative comparisons are scarce. The study compares a model‑driven optimization engine to ATLAS’s global search by measuring the performance of the resulting code across multiple architectures. Both systems share the same code generator, so the only variable is the optimization strategy—model‑driven versus global search—allowing a direct comparison of parameter choices. Experiments demonstrate that model‑driven optimization produces code whose performance is comparable to that of ATLAS’s search‑based approach.
A key step in program optimization is the estimation of optimal values for parameters such as tile sizes and loop unrolling factors. Traditional compilers use simple analytical models to compute these values. In contrast, library generators like ATLAS use global search over the space of parameter values by generating programs with many different combinations of parameter values, and running them on the actual hardware to determine which values give the best performance. It is widely believed that traditional model-driven optimization cannot compete with search-based empirical optimization because tractable analytical models cannot capture all the complexities of modern high-performance architectures, but few quantitative comparisons have been done to date. To make such a comparison, we replaced the global search engine in ATLAS with a model-driven optimization engine and measured the relative performance of the code produced by the two systems on a variety of architectures. Since both systems use the same code generator, any differences in the performance of the code produced by the two systems can come only from differences in optimization parameter values. Our experiments show that model-driven optimization can be surprisingly effective and can generate code with performance comparable to that of code generated by ATLAS using global search.
29
The Design and Implementation of FFTW3
Matteo Frigo, Steven G. Johnson · Proceedings of the IEEE · 2005 · 5.2K citations
FFTW: an adaptive software architecture for the FFT
Matteo Frigo, Steven G. Johnson · 2002 · 1.8K citations
Evaluation techniques for storage hierarchies
R. L. Mattson, J. Gecsei, Donald R. Slutz et al. · IBM Systems Journal · 1970 · 1.3K citations
SPIRAL: Code Generation for DSP Transforms
Markus Püschel, José M. F. Moura, Jeremy Johnson et al. · Proceedings of the IEEE · 2005 · 829 citations