Skip to main content
QUICK REVIEW

[Paper Review] A Class of Parallel Tiled Linear Algebra Algorithms for Multicore Architectures

Alfredo Buttari, Julien Langou|ArXiv.org|Sep 9, 2007
Parallel Computing and Optimization TechniquesComputer Science7 references32 citations
TL;DR

This paper presents a class of tiled, data-driven linear algebra algorithms for multicore architectures that achieve high performance through fine-grained task parallelism and asynchronous execution. By decomposing Cholesky, LU, and QR factorizations into small, dynamically scheduled tasks operating on square blocks, the approach hides sequential bottlenecks and improves performance by up to 50% over vendor-optimized BLAS-based implementations and traditional fork-join models.

ABSTRACT

As multicore systems continue to gain ground in the High Performance Computing world, linear algebra algorithms have to be reformulated or new algorithms have to be developed in order to take advantage of the architectural features on these new processors. Fine grain parallelism becomes a major requirement and introduces the necessity of loose synchronization in the parallel execution of an operation. This paper presents an algorithm for the Cholesky, LU and QR factorization where the operations can be represented as a sequence of small tasks that operate on square blocks of data. These tasks can be dynamically scheduled for execution based on the dependencies among them and on the availability of computational resources. This may result in an out of order execution of the tasks which will completely hide the presence of intrinsically sequential tasks in the factorization. Performance comparisons are presented with the LAPACK algorithms where parallelism can only be exploited at the level of the BLAS operations and vendor implementations.

Motivation & Objective

  • To address the scalability limitations of traditional LAPACK and ScaLAPACK libraries on multicore architectures, where parallelism is restricted to BLAS-level operations.
  • To overcome the performance bottleneck caused by coarse-grained parallelism and synchronization overhead in conventional block algorithms.
  • To design algorithms that exploit fine-grained parallelism and asynchronous execution to improve data locality and hide memory latency on multicore systems.
  • To demonstrate that tiled algorithms with dynamic task scheduling can outperform both standard LAPACK implementations and optimized vendor libraries like Intel MKL.

Proposed method

  • Decompose dense linear algebra factorizations (Cholesky, LU, QR) into a sequence of small, independent tasks operating on square tiles of data.
  • Model the computation as a directed acyclic graph (DAG) of tasks, where dependencies are explicitly represented to guide dynamic scheduling.
  • Use a runtime system to schedule tasks asynchronously based on data availability and resource availability, enabling out-of-order execution.
  • Employ a tile size and internal blocking size that balance data reuse, load balancing, and BLAS efficiency to minimize overhead.
  • Implement the algorithm using a task-based programming model that allows runtime adaptation to hardware characteristics and workload distribution.
  • Evaluate performance using a PLASMA-based runtime system, comparing tiled algorithms against LAPACK block algorithms and vendor-optimized BLAS libraries.

Experimental results

Research questions

  • RQ1Can fine-grained, tiled algorithms with dynamic task scheduling outperform traditional BLAS-based, fork-join parallelism on multicore systems?
  • RQ2To what extent can asynchronous execution and out-of-order task scheduling hide the latency of inherently sequential operations in factorization algorithms?
  • RQ3How does the choice of tile size and internal blocking size affect the performance and numerical stability of tiled linear algebra kernels?
  • RQ4Can tiled algorithms achieve higher performance than vendor-optimized BLAS libraries like Intel MKL, especially for smaller problem sizes?
  • RQ5What are the scalability characteristics of tiled algorithms under varying problem sizes and core counts?

Key findings

  • The tiled algorithm with asynchronous execution achieved approximately 50% higher performance than the LAPACK block algorithm using multithreaded BLAS and outperformed a vendor-optimized implementation of the same operation.
  • For Cholesky factorization, the tiled approach significantly outperformed the LAPACK left-looking variant, which suffers from poor performance due to inefficient row swapping.
  • The LU factorization using the tiled approach reached asymptotic performance faster than LAPACK and MKL, delivering substantial speedups for smaller problem sizes due to reduced parallelization overhead.
  • The performance gap between the tiled algorithm and Intel MKL-9.1 for LU factorization was primarily due to inefficient pairwise pivoting and suboptimal internal blocking size, which increased computational overhead.
  • The flop count of the tiled algorithm increased by a factor of 1 + s/(2b), but this cost could be minimized with a small internal blocking size s, maintaining high efficiency.
  • Weak scalability results showed that the tiled algorithm maintained high performance as the number of cores increased, demonstrating effective load distribution and resource utilization.

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.