Cache-aware optimization of matrix multiplication and matrix factorizations on multicore processors
Abstract This paper advocates for a careful customization of the special general matrix multiplication () kernels that are invoked from blocked routines for several relevant matrix factorizations in LAPACK, in order to improve their performance on modern multicore processors with hierarchical cache memories. To achieve this, we leverage a refined analytical model to dynamically tune the cache configuration parameters of for these kernels, taking into account the matrix operands’ dimensions, in order to improve cache occupation. In addition, toward the same goal, we accommodate a flexible development of architecture-specific micro-kernels for that allows us to select the option that, depending on the operands’ dimensions, ameliorates cache utilization. Our experiments for the LU and QR factorizations on two platforms, equipped with ARM (NVIDIA Carmel) and x86 (AMD EPYC) multi-core processors, demonstrate the benefits of this approach in terms of a better cache utilization and, in general, higher performance. Moreover, they also reveal the delicate balance between optimizing for multi-threaded parallelism versus cache usage as well as the positive effects of software prefetching.
Authors
- José R. Herrero (ORCID: https://orcid.org/0000-0002-4060-367X)
- Enrique S. Quintana–Ort́ı (ORCID: https://orcid.org/0000-0002-5454-165X)
- Hèctor Martínez (ORCID: https://orcid.org/0000-0001-5891-4479)
- Rafael Rodríguez‐Sánchez (ORCID: https://orcid.org/0000-0001-8789-3953)
- Francisco D. Igual (ORCID: https://orcid.org/0000-0003-4480-9517)
- Sandra Beltrán Catalán
Institutions
- Universitat Jaume I (ES)
- Universidad Complutense de Madrid (ES)
- University of Córdoba (ES)
- Universitat Politècnica de València (ES)
- University of Castilla-La Mancha (ES)
- Universitat Politècnica de Catalunya (ES)
Publication Details
- Journal
- Cluster Computing
- Published
- 2025-09-15
- DOI
- https://doi.org/10.1007/s10586-025-05426-6
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- European Commission
- Generalitat de Catalunya
- European Regional Development Fund
- Agencia Estatal de Investigación