Skip to main content
QUICK REVIEW

[Paper Review] Towards an Efficient Tile Matrix Inversion of Symmetric Positive Definite Matrices on Multicore Architectures

Emmanuel Agullo, Henricus Bouwmeester|arXiv (Cornell University)|Feb 22, 2010
Parallel Computing and Optimization TechniquesComputer Science9 references5 citations
TL;DR

This paper presents a tile-based algorithm for inverting symmetric positive definite matrices on multicore architectures using a dynamic task scheduler. By applying compiler techniques like array renaming, loop reversal, and pipelining to reduce anti-dependences and critical path length, the method achieves high scalability and performance, outperforming state-of-the-art libraries on multi-core systems with up to 8 cores.

ABSTRACT

The algorithms in the current sequential numerical linear algebra libraries (e.g. LAPACK) do not parallelize well on multicore architectures. A new family of algorithms, the tile algorithms, has recently been introduced. Previous research has shown that it is possible to write efficient and scalable tile algorithms for performing a Cholesky factorization, a (pseudo) LU factorization, and a QR factorization. In this extended abstract, we attack the problem of the computation of the inverse of a symmetric positive definite matrix. We observe that, using a dynamic task scheduler, it is relatively painless to translate existing LAPACK code to obtain a ready-to-be-executed tile algorithm. However we demonstrate that non trivial compiler techniques (array renaming, loop reversal and pipelining) need then to be applied to further increase the parallelism of our application. We present preliminary experimental results.

Motivation & Objective

  • To address the challenge of efficiently computing the inverse of symmetric positive definite matrices on modern multicore architectures.
  • To overcome anti-dependences in matrix inversion that hinder parallelism in tile algorithms.
  • To evaluate the impact of compiler techniques—array renaming, loop reversal, and pipelining—on performance and scalability.
  • To demonstrate that dynamic scheduling enables effective pipelining of multiple inversion steps without manual static scheduling.
  • To achieve high performance and strong scalability on shared-memory multicore systems, surpassing existing libraries.

Proposed method

  • The algorithm uses a tile-based decomposition of the matrix into small blocks (e.g., b=200), enabling fine-grained parallelism.
  • It leverages a dynamic task scheduler to manage data dependencies at runtime, avoiding the complexity of static scheduling.
  • Array renaming is applied to eliminate anti-dependences (e.g., Write After Read) by using temporary copies of data, reducing critical path length.
  • Loop reversal is used to reorder commutative GEMM operations, minimizing the critical path in each algorithmic step.
  • Pipelining is applied across the three stages of inversion (Cholesky, solve, and update) to improve task-level parallelism.
  • The implementation is integrated into the PLASMA library and evaluated on a dual-socket quad-core Intel Xeon system with 8 cores.

Experimental results

Research questions

  • RQ1How can tile algorithms be extended to matrix inversion, which exhibits significant anti-dependences?
  • RQ2To what extent do array renaming and loop reversal improve parallelism and reduce critical path length in matrix inversion?
  • RQ3Can a dynamic scheduler effectively pipeline the three stages of matrix inversion without manual static scheduling?
  • RQ4What is the performance gain of the proposed algorithm over existing libraries on modern multicore systems?
  • RQ5How does the choice of loop ordering (increasing vs. decreasing) affect the critical path and execution time?

Key findings

  • The out-of-place variant with array renaming achieved significantly higher strong scalability than the in-place version, especially on small matrices (e.g., N=1000), due to higher parallelism.
  • For a 4000×4000 matrix, both in-place and out-of-place versions achieved similar performance on up to 7 cores, but the out-of-place version used all 8 cores more efficiently.
  • Loop reversal reduced the critical path of TRTRI from O(t²) to O(t), with the UDU ordering (increasing, decreasing, increasing) minimizing path length compared to naive UUU ordering.
  • Pipelining reduced the critical path from 9t−7 to 9t−9 tasks (in-place) and from 6t−3 to 5t−2 tasks (out-of-place), but had minimal performance impact on in-place due to low overhead.
  • On an 8000×8000 matrix with b=2000, disabling pipelining increased execution time by 16% (from 25.1s to 29.2s) in the out-of-place case, confirming its performance benefit.
  • The dynamic scheduler enabled automatic pipelining, while loop reversal and array renaming required manual algorithmic changes, suggesting future work on automated optimization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.