Skip to main content
QUICK REVIEW

[Paper Review] High-performance Implementation of Matrix-free High-order Discontinuous Galerkin Methods

Steffen Müthing, Marian Piatkowski|arXiv (Cornell University)|Nov 29, 2017
Advanced Numerical Methods in Computational MathematicsEngineering7 references26 citations
TL;DR

This paper presents a high-performance, matrix-free implementation of high-order discontinuous Galerkin methods using sum factorization and SIMD vectorization on CPU architectures. It achieves over 50% of theoretical peak performance on AVX2-enabled Intel CPUs, with speedups exceeding 100× over matrix-based approaches at polynomial degree 7, demonstrating excellent weak and strong scalability on up to 6,144 cores.

ABSTRACT

Achieving a substantial part of peak performance on todays and future high-performance computing systems is a major challenge for simulation codes. In this paper we address this question in the context of the numerical solution of partial differential equations with finite element methods, in particular the discontinuous Galerkin method applied to a convection-diffusion-reaction model problem. Assuming tensor product structure of basis functions and quadrature on cuboid meshes in a matrix-free approach a substantial reduction in computational complexity can be achieved for operator application compared to a matrix-based implementation while at the same time enabling SIMD vectorization and the use of fused-multiply-add. Close to 60\% of peak performance are obtained for a full operator evaluation on a Xeon Haswell CPU with 16 cores and speedups of several hundred (with respect to matrix-based computation) are achieved for polynomial degree seven. Excellent weak scalability on a single node as well as the roofline model demonstrate that the algorithm is fully compute-bound with a high flop per byte ratio. Excellent scalability is also demonstrated on up to 6144 cores using message passing.

Motivation & Objective

  • To address the challenge of achieving high performance on modern HPC systems for finite element simulations of PDEs.
  • To reduce computational complexity in high-order discontinuous Galerkin methods by avoiding matrix assembly.
  • To enable efficient use of SIMD vector units and fused-multiply-add instructions on multi-core CPUs.
  • To achieve high flop-per-byte ratios and minimize memory bandwidth bottlenecks in large-scale simulations.
  • To demonstrate strong and weak scalability on distributed-memory systems using message passing.

Proposed method

  • Employing a matrix-free approach with tensor-product basis functions and quadrature on hexahedral meshes to eliminate matrix storage and assembly.
  • Applying sum factorization to reduce the computational complexity of operator evaluation from O(p^6) to O(p^4) per element.
  • Leveraging AVX-512 and fused-multiply-add instructions for high arithmetic intensity and vectorization across degrees of freedom.
  • Using a cell-based kernel that operates on individual elements without requiring vectorization across multiple cells or faces.
  • Implementing halo exchanges and communication overlap strategies for scalable message-passing on distributed-memory clusters.
  • Validating performance using the roofline model to confirm compute-bound behavior and high arithmetic intensity.

Experimental results

Research questions

  • RQ1Can matrix-free high-order DG methods achieve high performance on modern CPU architectures without relying on accelerators?
  • RQ2To what extent can sum factorization and SIMD vectorization reduce computational complexity and improve flop-per-byte ratios in DG methods?
  • RQ3How does the performance scale across thousands of CPU cores in a distributed-memory environment?
  • RQ4What is the achievable fraction of peak performance using only native CPU instructions and optimized memory access patterns?
  • RQ5Can the matrix-free approach maintain high efficiency while avoiding the need for framework-level code restructuring?

Key findings

  • The matrix-free implementation achieves over 50% of theoretical peak performance on a Xeon Haswell CPU with 16 cores using AVX2 and fused-multiply-add instructions.
  • Speedups of over 100× are achieved compared to matrix-based computation at polynomial degree 7 on the same hardware.
  • The implementation is fully compute-bound, with a high flop-per-byte ratio confirmed by roofline modeling.
  • Weak scalability is excellent up to 384 nodes (768 cores), with nearly flat efficiency across problem sizes.
  • Strong scalability is demonstrated on up to 6,144 cores, with efficiency dropping to around 39% at the highest core count due to limited communication overlap.
  • The method maintains high performance without requiring vectorization across multiple cells or faces, enabling seamless integration into existing finite element frameworks.

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.