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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Cache-aware optimization of matrix multiplication and matrix factorizations on multicore processors

José R. Herrero, Enrique S. Quintana–Ort́ı, Hèctor Martínez, Rafael Rodríguez‐Sánchez et al.
Cluster Computing
Parallel Computing and Optimization Techniques
article

Cache-aware optimization of matrix multiplication and matrix factorizations on multicore processors

José R. Herrero, Enrique S. Quintana–Ort́ı, Hèctor Martínez, Rafael Rodríguez‐Sánchez, Francisco D. Igual, Sandra Beltrán Catalán
article en

Abstract

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.

Cluster ComputingVol. 28(12)
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)
European Commission, Generalitat de Catalunya, European Regional Development Fund, Agencia Estatal de Investigación
Openalex Percentile: Top 74%
Parallel Computing and Optimization Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.