arXiv:2608.24348cs.DCAug 2026

Manuscript Offprint

arXiv:2608.24348

Mixed-Precision SEM-Based CFD Simulations on GPUs: A Taylor-Green Vortex case

Yanxiang Chen, Manuel Münsch, Roman Iakymchuk

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yanxiang Chen 1^{1}, Manuel Münsch 2^{2}, and Roman Iakymchuk 1,3^{1,3}

1^{1} Umeå University, Sweden {ychen,riakymch}@cs.umu.se

2^{2} Friedrich-Alexander University Erlangen-Nuremberg, Germany

manuel.muensch@fau.de

3^{3} Uppsala University, Sweden

Abstract. Mixed precision is a promising approach for reducing the computational cost and energy consumption of Computation Fluid Dynamics (CFD) simulations, but its effectiveness depends strongly on where precision is reduced within the full simulation pipeline. In this work, we study Taylor–Green vortex case using Neko, a matrix-free CFD solver based on the spectral element method (SEM). Profiling shows that the fluid time step is not dominated by Krylov convergence alone: the velocity and pressure solvers require only a small number of iterations per step, while a substantial fraction of runtime is spent in other SEM operators and solver components. Motivated by this structure, we propose a three-level hierarchical mixed-precision control model. Two groups of configurations are evaluated in environments bounded by 64-bit floating-point (fp64) and 32-bit floating-point (fp32) precision, respectively. The fp64-bounded group identifies accuracy sensitive components and shows that SEM-focused fp32 computation is a promising direction for future optimization. The fp32-bounded group provides the main practical benefit. For the high Reynolds number case studied, selected configurations reduce both time- and energy-to-solution by about 34% relative to the fp64 baseline, while improving robustness compared with global fp32. Targeted fp16 kernel overrides are also explored, showing potential for selected operations but increased sensitivity in gradient-based quantities such as enstrophy. Overall, these results indicate that mixed-precision for matrix-free SEM-based CFD should be treated as a simulation-level control problem rather than solely as a Krylov-solver optimization.

Keywords: Mixed-precision, spectral element method, CFD, Taylor-Green Vortex, Neko, matrix-free, Conjugate Gradient, GMRES, GPUs, energy-to-solution.

1 Introduction

Traditionally, scientific applications have been developed using double precision, i.e., fp64, the 64-bit IEEE 754 floating-point format. Lower precisions such as single precision, fp32, have long been recognized for their potential to reduce both memory traffic and execution time. More recently, AI-driven even lower-precision formats, including fp16, bf16, and int8, have emerged as promising candidates for scientific computing [13], but require further investigation. In this context, mixed-precision algorithms have been extensively studied in numerical linear algebra [1,10], motivated by the fact that many scientific applications

Y Chen, M Münsch, R Iakymchuk

require high-accuracy solutions while also seeking performance and energy gains through the use of lower precision in selected parts of the computation.

Many applications, including Computational Fluid Dynamics (CFD), ultimately rely on the solution of large linear systems Ax=bAx = b. In practice, iterative methods, particularly Krylov subspace methods, are among the most commonly used solvers. To balance accuracy and efficiency, numerous mixed-precision Krylov methods have been proposed, such as GMRES-based iterative refinement using multiple precisions [3,2]. Most of these methods are matrix-based, in the sense that they assume explicit access to the stored matrix A and, often, to a preconditioner M, as in the LU-based iterative refinement [3]. Within this framework, the storage precision of the system matrix itself also becomes an important design question. Mixed-precision variants of the conjugate gradient (CG) method, e.g. with adaptive precision block-Jacobi preconditioner [9], have likewise been proposed. We refer to such approaches as fine-grained mixed-precision algorithms, since the precision-switching strategies are applied within the internal operations of a Krylov solver. In this paper, we demonstrate the limited applicability of fine-grained mixed-precision algorithms to SEM-based CFD applications and propose a hierarchical multi-level approach for enabling mixed precision.

Based on the previous analysis of the Poisson's example with Nekbone [4] and Neko [5] with the help of Verificarlo computer arithmetic tool [6], where only the velocity solve of the Navier-Stokes equation was involved, we proceed with the full SEM simulation invoking both velocity and pressure solves of the Navier-Stokes equation on the example of Taylor-Green Vortex. Our main contributions are as follows:

  1. Proposed general methodology for enabling mixed-precision in different parts of SEM-based CFD simulation, including the fluid solver, Krylov-type solvers, and kernels.

  2. Extensive study on the Taylor-Green Vortex benchmark: We increase not only the simulation size but also the polynomial order to gain deeper insight into the factors that affect result accuracy and determine the intermediate precision required by these solvers.

  3. Evaluated the proposed mixed-precision strategies on a few European supercomputers, focusing on GPUs with a wider range of hardware supported low precision formats.

The rest of this article is organized as follows: Sect. 1.1 provides motivation for this study. Sect. 2 introduces our methodology for enabling mixed-precision in SEM-based CFD simulations, while Sect. 3 presents the Taylor-Green Vortex case. Sect. 4 demonstrates the results from both accuracy and performance perspectives. Finally, Sect. 5 discusses the main outcomes and outlines future work.