Skip to main content
QUICK REVIEW

[Paper Review] A Case for Malleable Thread-Level Linear Algebra Libraries: The LU Factorization with Partial Pivoting

Sandra Beltrán Catalán, José R. Herrero|arXiv (Cornell University)|Nov 19, 2016
Parallel Computing and Optimization TechniquesComputer Science5 citations
TL;DR

This paper proposes a malleable thread-level BLAS library to dynamically balance workloads in LU factorization with partial pivoting, using Worker Sharing (WS) and Early Termination (ET) to adapt thread allocation during execution. It achieves competitive performance against runtime-based solutions with lower overhead and dynamic block size tuning on a 6-core Intel Xeon system.

ABSTRACT

We propose two novel techniques for overcoming load-imbalance encountered when implementing so-called look-ahead mechanisms in relevant dense matrix factorizations for the solution of linear systems. Both techniques target the scenario where two thread teams are created/activated during the factorization, with each team in charge of performing an independent task/branch of execution. The first technique promotes worker sharing (WS) between the two tasks, allowing the threads of the task that completes first to be reallocated for use by the costlier task. The second technique allows a fast task to alert the slower task of completion, enforcing the early termination (ET) of the second task, and a smooth transition of the factorization procedure into the next iteration. The two mechanisms are instantiated via a new malleable thread-level implementation of the Basic Linear Algebra Subprograms (BLAS), and their benefits are illustrated via an implementation of the LU factorization with partial pivoting enhanced with look-ahead. Concretely, our experimental results on a six core Intel-Xeon processor show the benefits of combining WS+ET, reporting competitive performance in comparison with a task-parallel runtime-based solution.

Motivation & Objective

  • To address load imbalance in dense matrix factorizations caused by static thread allocation in multi-threaded BLAS routines.
  • To improve performance in LU factorization with partial pivoting by enabling dynamic reallocation of idle threads during execution.
  • To reduce reliance on complex runtimes by introducing lightweight, malleable thread-level mechanisms for workload balancing.
  • To evaluate the effectiveness of Worker Sharing (WS) and Early Termination (ET) in a malleable BLAS framework on modern multi-core architectures.

Proposed method

  • Develop a malleable thread-level implementation of BLIS that allows runtime adjustment of the number of threads participating in BLAS kernels.
  • Implement Worker Sharing (WS) to reallocate threads from a completed panel factorization task to a still-running trailing update task.
  • Design Early Termination (ET) to allow the faster task to signal completion and terminate the slower task early, advancing the factorization to the next iteration.
  • Integrate WS and ET into a blocked LU factorization with look-ahead, using dynamic block size adaptation during execution.
  • Use execution traces and performance measurements on a 6-core Intel Xeon E5-2603 v3 to evaluate the approach against static and OmpSs-based solutions.
  • Compare results with a task-parallel OmpSs-based implementation to assess performance, scalability, and memory efficiency.

Experimental results

Research questions

  • RQ1Can dynamic thread reallocation via malleable BLAS improve load balancing in LU factorization with partial pivoting?
  • RQ2How effective is Worker Sharing (WS) in reducing idle time when one task completes before the other?
  • RQ3To what extent does Early Termination (ET) improve performance when the panel factorization is more expensive than the trailing update?
  • RQ4How does the malleable BLAS approach compare in performance and memory footprint to a sophisticated task-parallel runtime like OmpSs?
  • RQ5Can the malleable approach automatically tune the algorithmic block size during execution, reducing the need for manual tuning?

Key findings

  • The combination of Worker Sharing and Early Termination (WS+ET) in the malleable BLAS framework achieves competitive performance compared to an OmpSs-based task-parallel solution on a 6-core Intel Xeon processor.
  • For small problem sizes, the LU ET variant outperforms all static look-ahead variants, particularly due to the dynamic adjustment of block size via ET.
  • When using a fixed block size (bo = 192), the malleable LU ET variant maintains high performance across a wide range of problem dimensions, showing robustness to suboptimal tuning.
  • In contrast, the OmpSs-based solution (LU OS) shows a more pronounced performance drop with suboptimal block size selection, highlighting the advantage of dynamic adaptation in the malleable approach.
  • The malleable BLAS approach achieves better performance than static implementations and offers a significantly smaller memory footprint than runtime-based alternatives.
  • The experimental results demonstrate that malleable thread-level libraries can effectively exploit dynamic load balancing without the overhead of complex runtimes, making them promising for future many-core architectures.

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.