Skip to main content
QUICK REVIEW

[Paper Review] Tiled Algorithms for Matrix Computations on Multicore Architectures

Henricus Bouwmeester|arXiv (Cornell University)|Mar 13, 2013
Parallel Computing and Optimization TechniquesComputer Science42 references6 citations
TL;DR

This paper introduces tiled algorithms for matrix computations on multicore architectures, leveraging dynamic task scheduling and compiler optimizations to improve parallelism and performance over traditional LAPACK libraries. It presents optimal scheduling strategies and algorithmic improvements for Cholesky and QR factorizations, achieving near-optimal performance bounds in bounded-processor settings through critical path analysis and integer programming formulations.

ABSTRACT

The current computer architecture has moved towards the multi/many-core structure. However, the algorithms in the current sequential dense numerical linear algebra libraries (e.g. LAPACK) do not parallelize well on multi/many-core architectures. A new family of algorithms, the tile algorithms, has recently been introduced to circumvent this problem. 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. The goal of this thesis is to study tiled algorithms in a multi/many-core setting and to provide new algorithms which exploit the current architecture to improve performance relative to current state-of-the-art libraries while maintaining the stability and robustness of these libraries.

Motivation & Objective

  • Address the poor parallelization of sequential LAPACK algorithms on modern multicore architectures.
  • Develop tiled algorithms that improve performance while maintaining numerical stability and robustness.
  • Optimize scheduling and algorithm design for bounded numbers of processors, minimizing critical path lengths.
  • Establish theoretical performance bounds and validate them experimentally against state-of-the-art libraries.
  • Integrate dynamic task scheduling with advanced compiler techniques to enhance parallelism in tile-based kernels.

Proposed method

  • Use dynamic task scheduling to translate existing LAPACK code into executable tile algorithms with minimal modification.
  • Apply compiler optimizations such as array renaming, loop reversal, and pipelining to increase parallelism in tile-based kernels.
  • Model tiled algorithms using directed acyclic graphs (DAGs) and analyze critical path lengths for various scheduling strategies.
  • Formulate integer programming models to jointly optimize reduction trees and schedules for QR factorization under bounded processor constraints.
  • Derive theoretical lower bounds on time-to-solution for both Cholesky and QR factorizations to evaluate optimality.
  • Propose a new optimal tiled QR algorithm that outperforms existing approaches like Greedy and Fibonacci in critical path length.

Experimental results

Research questions

  • RQ1How can existing LAPACK code be efficiently translated into tiled algorithms using dynamic task scheduling?
  • RQ2What compiler techniques are necessary to maximize parallelism in tiled matrix inversion and factorization kernels?
  • RQ3Which scheduling strategy minimizes the critical path in Cholesky factorization under bounded processor constraints?
  • RQ4Can the optimality of coarse-grain algorithms (e.g., Greedy) be preserved in the tiled model, and if not, how can a new optimal tiled algorithm be constructed?
  • RQ5What is the theoretical lower bound on time-to-solution for tiled QR factorization, and how close can practical schedules come to it?

Key findings

  • Loop reversal significantly improves performance in tile-based Cholesky inversion, reducing critical path length and enhancing parallelism.
  • The critical path schedule is nearly optimal for Cholesky factorization under bounded processors, with a derived theoretical lower bound on time-to-solution.
  • The proposed tiled QR algorithm achieves shorter critical path lengths than Greedy and Fibonacci algorithms across all tested matrix sizes ($p \times q$ with $1 \leq p \leq 100$, $1 \leq q \leq p$).
  • A new algorithm is proven optimal in the tiled context, outperforming coarse-grain Greedy in critical path length, even though Greedy’s optimality does not translate to the tiled model.
  • Integer programming formulations successfully model precedence constraints between zeroing and updating operations in QR factorization, enabling joint optimization of algorithm and schedule.
  • Experimental results show that the upper bound on performance closely matches actual execution times, validating the theoretical performance bounds.

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.