[Paper Review] Rectangular Full Packed Format for Cholesky's Algorithm: Factorization, Solution and Inversion
This paper introduces Rectangular Full Packed Format (RFPF), a novel storage format that combines the minimal memory usage of packed storage with the high performance of full storage by enabling use of Level 3 BLAS. RFPF achieves performance comparable to full-format LAPACK routines while using only half the memory, delivering up to 43x speedup over packed routines on serial systems and up to 97x on SMP parallel systems.
We describe a new data format for storing triangular, symmetric, and Hermitian matrices called RFPF (Rectangular Full Packed Format). The standard two dimensional arrays of Fortran and C (also known as full format) that are used to represent triangular and symmetric matrices waste nearly half of the storage space but provide high performance via the use of Level 3 BLAS. Standard packed format arrays fully utilize storage (array space) but provide low performance as there is no Level 3 packed BLAS. We combine the good features of packed and full storage using RFPF to obtain high performance via using Level 3 BLAS as RFPF is a standard full format representation. Also, RFPF requires exactly the same minimal storage as packed format. Each LAPACK full and/or packed triangular, symmetric, and Hermitian routine becomes a single new RFPF routine based on eight possible data layouts of RFPF. This new RFPF routine usually consists of two calls to the corresponding LAPACK full format routine and two calls to Level 3 BLAS routines. This means {\it no} new software is required. As examples, we present LAPACK routines for Cholesky factorization, Cholesky solution and Cholesky inverse computation in RFPF to illustrate this new work and to describe its performance on several commonly used computer platforms. Performance of LAPACK full routines using RFPF versus LAPACK full routines using standard format for both serial and SMP parallel processing is about the same while using half the storage. Performance gains are roughly one to a factor of 43 for serial and one to a factor of 97 for SMP parallel times faster using vendor LAPACK full routines with RFPF than with using vendor and/or reference packed routines.
Motivation & Objective
- Address the trade-off between memory efficiency and computational performance in storing symmetric and positive definite matrices.
- Overcome the limitations of standard packed format, which wastes performance due to lack of Level 3 BLAS support.
- Develop a storage format that uses minimal memory like packed format but enables high-performance computation using Level 3 BLAS routines.
- Integrate RFPF into LAPACK to support Cholesky factorization, solution, and inversion with full backward compatibility and performance gains.
- Enable seamless integration into existing LAPACK software stack without requiring new algorithmic implementations.
Proposed method
- Design RFPF as a rectangular layout that stores triangular matrices in a compact, contiguous one-dimensional array while preserving data access patterns compatible with full-format LAPACK routines.
- Map RFPF data layouts to eight possible configurations (based on storage order, triangle, and transpose), enabling a single RFPF routine to replace multiple full and packed LAPACK routines.
- Implement RFPF routines using two calls to standard LAPACK full-format routines and two calls to Level 3 BLAS kernels, ensuring high performance without new code.
- Support both real symmetric and complex Hermitian matrices, with extensions for transpose and conjugate transpose handling in complex cases.
- Provide conversion routines between standard formats (full, packed) and RFPF to ensure backward compatibility and interoperability.
- Integrate RFPF into LAPACK 3.2 with new routine names (e.g., CPFTRF, DPFTRS) following LAPACK naming conventions and supporting all precision and data types.
Experimental results
Research questions
- RQ1Can a new matrix storage format be designed that combines minimal memory usage with high performance via Level 3 BLAS?
- RQ2To what extent can existing LAPACK full-format routines be reused to implement high-performance RFPF routines without writing new kernels?
- RQ3How does RFPF performance compare to standard full and packed formats in both serial and SMP-parallel environments?
- RQ4What is the maximum performance gain achievable with RFPF over traditional packed storage formats in Cholesky factorization, solution, and inversion?
- RQ5Can RFPF be seamlessly integrated into LAPACK with backward compatibility and minimal changes to existing software infrastructure?
Key findings
- RFPF achieves performance comparable to standard LAPACK full-format routines while using only half the memory, matching the storage efficiency of packed format.
- On serial systems, RFPF delivers up to a 43-fold performance improvement over vendor and reference packed routines (PPTRF) for Cholesky factorization and inversion.
- On SMP-parallel systems, RFPF achieves up to a 97-fold speedup over packed routines due to effective use of Level 3 BLAS and multithreading.
- The performance of RFPF routines using vendor-optimized BLAS is nearly identical to that of standard full-format LAPACK routines, confirming minimal runtime overhead.
- LAPACK 3.2 natively supports 44 RFPF routines, including factorization, solution, inversion, and format conversion, demonstrating full integration into the LAPACK ecosystem.
- The RFPF approach enables high-performance computation on a wide range of architectures, including Intel Tigerton, IBM Power 4, and SUN UltraSPARC-IV systems, with consistent performance gains across platforms.
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.