[Paper Review] Fully Empirical Autotuned QR Factorization For Multicore Architectures
This paper presents a fully empirical autotuning framework for dense QR factorization on multicore architectures, using runtime benchmarking and strong empirical properties to prune the search space. It achieves 97–100% of peak performance across seven platforms with tuning completed in under 10 minutes on five of them, enabling performance portability for the PLASMA library.
Tuning numerical libraries has become more difficult over time, as systems get more sophisticated. In particular, modern multicore machines make the behaviour of algorithms hard to forecast and model. In this paper, we tackle the issue of tuning a dense QR factorization on multicore architectures. We show that it is hard to rely on a model, which motivates us to design a fully empirical approach. We exhibit few strong empirical properties that enable us to efficiently prune the search space. Our method is automatic, fast and reliable. The tuning process is indeed fully performed at install time in less than one and ten minutes on five out of seven platforms. We achieve an average performance varying from 97% to 100% of the optimum performance depending on the platform. This work is a basis for autotuning the PLASMA library and enabling easy performance portability across hardware systems.
Motivation & Objective
- To address the challenge of tuning dense QR factorization on modern multicore architectures where model-based predictions fail due to complex hardware behavior.
- To develop an automatic, fast, and reliable tuning process that can be performed at install time without human intervention.
- To enable performance portability across diverse multicore platforms by identifying and exploiting strong empirical properties to reduce search space.
- To lay the foundation for autotuning the PLASMA library and support future extensions to hybrid architectures and non-square matrices.
Proposed method
- The method performs exhaustive empirical benchmarking at install time to measure performance across tunable parameters such as block size (NB) and inner block size (IB).
- It leverages strong empirical properties—such as monotonicity and smoothness in performance trends—to prune the search space and avoid full enumeration.
- A decision tree is constructed from benchmark results using simple interpolation, enabling fast parameter selection at runtime.
- The approach is fully automatic, requiring no manual tuning except for systems with batch schedulers (e.g., IBM Power6 with LoadLeveler).
- Tuning is limited to a single machine per installation, with results shared across users to avoid redundant tuning.
- The framework is designed to scale to hybrid multicore-GPU systems and non-square matrices, with future work focusing on unified tuning across heterogeneous platforms.
Experimental results
Research questions
- RQ1Can a fully empirical approach outperform model-driven tuning for dense QR factorization on modern multicore systems?
- RQ2What empirical properties can reliably reduce the search space for autotuning without sacrificing performance?
- RQ3How quickly can autotuning be completed at install time while achieving near-peak performance across diverse architectures?
- RQ4Can this method be extended to support non-square matrices and hybrid multicore-GPU systems?
Key findings
- The autotuning process completes in less than 10 minutes on five of seven platforms, with full tuning taking under one hour on all systems.
- The method achieves an average performance of 97% to 100% of the theoretical peak performance across all tested platforms.
- On the IBM Power6 system, the method achieved 100% of peak performance with no tuning overhead.
- The approach successfully identified optimal parameters for all tested matrix sizes and block configurations, with performance within 1% of the optimum in most cases.
- The use of empirical properties such as performance monotonicity enabled effective pruning of the search space, reducing the number of benchmarks needed.
- The framework is extensible and forms a foundation for autotuning in the PLASMA library and future heterogeneous architectures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.