Skip to main content
QUICK REVIEW

[Paper Review] Ginkgo: A Modern Linear Operator Algebra Framework for High Performance Computing

Hartwig Anzt, Terry Cojean|arXiv (Cornell University)|Jun 30, 2020
Distributed and Parallel Computing SystemsComputer Science11 citations
TL;DR

Ginkgo is a modern C++ linear operator algebra framework for high-performance computing that abstracts all linear algebra operations as composable linear operators, enabling performance portability across GPUs and multicore architectures. It achieves high performance on state-of-the-art GPUs through hardware-specific kernel optimizations and a modular, extensible design, demonstrating competitive SpMV and Krylov solver performance on NVIDIA V100 and AMD Radeon VII systems.

ABSTRACT

In this paper, we present Ginkgo, a modern C++ math library for scientific high performance computing. While classical linear algebra libraries act on matrix and vector objects, Ginkgo's design principle abstracts all functionality as "linear operators", motivating the notation of a "linear operator algebra library". Ginkgo's current focus is oriented towards providing sparse linear algebra functionality for high performance GPU architectures, but given the library design, this focus can be easily extended to accommodate other algorithms and hardware architectures. We introduce this sophisticated software architecture that separates core algorithms from architecture-specific back ends and provide details on extensibility and sustainability measures. We also demonstrate Ginkgo's usability by providing examples on how to use its functionality inside the MFEM and deal.ii finite element ecosystems. Finally, we offer a practical demonstration of Ginkgo's high performance on state-of-the-art GPU architectures.

Motivation & Objective

  • To address the growing need for high-performance sparse linear algebra libraries tailored for modern manycore accelerators like GPUs.
  • To design a software framework that separates numerical algorithms from hardware-specific kernels for correctness, performance portability, and extensibility.
  • To provide a user-friendly, composable interface using the linear operator abstraction for solvers, preconditioners, and matrix operations.
  • To ensure sustainable software development through rigorous testing, continuous integration, and benchmarking.
  • To enable seamless integration into major scientific computing ecosystems like MFEM and deal.ii.

Proposed method

  • Abstracts all linear algebra functionality as 'linear operators' to unify solvers, preconditioners, matrix-vector products, and reorderings under a single interface.
  • Decouples core algorithms from architecture-specific backends using a plugin-style design, enabling performance-optimized kernels in CUDA, HIP, and OpenMP.
  • Employs smart pointers and memory passing decorators for safe, fine-grained memory management across devices.
  • Uses executor abstraction to enable transparent execution on diverse hardware, including CPUs and GPUs.
  • Integrates continuous benchmarking and automated testing to ensure code quality and long-term sustainability.
  • Supports advanced preconditioning techniques such as ParILUT (threshold-based ILU) and block-Jacobi with automatic precision adaptation.

Experimental results

Research questions

  • RQ1How can a linear algebra library achieve high performance and portability across diverse GPU and multicore architectures?
  • RQ2Can a unified linear operator abstraction simplify the implementation and composition of solvers and preconditioners while maintaining performance?
  • RQ3How does Ginkgo’s separation of algorithms from hardware backends impact correctness, maintainability, and extensibility?
  • RQ4What performance gains does Ginkgo achieve over existing libraries like cuSPARSE on modern GPU architectures?
  • RQ5To what extent can Ginkgo be integrated into existing finite element software stacks like MFEM and deal.ii?

Key findings

  • Ginkgo achieves high performance on NVIDIA V100 and AMD Radeon VII GPUs, with SpMV kernels reaching up to 790.475 GB/s on V100 and 841.669 GB/s on Radeon VII for copy operations.
  • The Radeon VII outperforms the V100 by 6% on copy operations but lags by 25% on dot operations, likely due to limited independent thread scheduling, affecting Krylov solver performance.
  • Ginkgo’s ParILUT preconditioner significantly accelerates GMRES convergence for anisotropic flow problems, outperforming standard cuSPARSE ILU on two generations of NVIDIA GPUs.
  • The block-Jacobi preconditioner in Ginkgo reduces memory access time by automatically adapting precision based on condition number and exponent range, improving performance over fixed-precision alternatives.
  • Ginkgo’s Gauss-Jordan elimination for diagonal block inversion is highly optimized via batched variable-size kernels, enabling efficient preconditioner generation on GPUs.
  • The library’s design enables seamless integration into MFEM and deal.ii, demonstrating its usability in real-world finite element applications.

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.