A wider state, not wider arithmetic, for single-precision time integration
Abstract
Single precision (FP32) halves the memory and data movement of double precision (FP64), and on accelerators is often several times faster. Its rounding errors are harmless except in the stored state. A modified equation for Runge-Kutta methods in Shu-Osher form and linear multistep methods separates the rounding of the stored state, a forcing proportional to , from truncation and from right-hand-side rounding, which sets a -independent floor. We bound this forcing for strong-stability-preserving schemes and identify two mechanisms that keep its sign fixed, so it accumulates as a bias: past a turnaround step, refining the step increases the error, in FP64 as in FP32. For a model oscillator the analysis predicts the floor and the FP32-to-FP64 ratios of turnaround step and minimum error within 30%. Our remedy needs no FP64 arithmetic: each state variable is stored as the unevaluated sum of two FP32 numbers, updated with error-free transformations, while every right-hand-side evaluation stays in FP32. Unlike compensated summation, it needs no rewriting of the scheme. In model problems from geophysical flow, mechanical dynamics and celestial mechanics, with five Runge-Kutta and multistep schemes, it restores design-order convergence to the floor. In large-eddy simulations of a high-lift airplane wing on three refined grids, up to 544 million cells, with time steps , and , FP32 overpredicts the lift by 2.1, 4.5 and 7.7%, while the two-float lift agrees with FP64 within 0.3% on every grid, and on graphics processing units the production solver runs 1.6 to 2.7 times faster than FP64.
Create a lesson
Metadata
- Categories
- math.NA, cs.NA, physics.comp-ph, physics.flu-dyn
- Comments
- 43 pages, 7 figures
Related papers
Schur decomposition with logarithmic precision in cubic time up to logarithmic factors
Shared title terminologymath.NAMatthew J. Colbrook
Variational integrators for time-dependent Lagrangian systems on Lie groups
Shared title terminologymath.NALeonardo Colombo, María Emma Eyrea Irazú, David Martín de Diego et al.
A structure-preserving discontinuous Galerkin method for variable-density incompressible flow with a partitioned time integrator
Shared title terminologymath.NAZonghao Bai, Yinhua Xia, Yan Xu
A Legendre-Based Modified Extreme Learning Machine for Convection-Diffusion Equations: Steady-State, Continuous-Time, and Discrete-Time Formulations
Shared title terminologymath.NAGadade Navnath Ankush, Ram Shiromani, Tomas Gandara et al.
A structure-preserving finite volume scheme for the time-fractional Allen-Cahn equation with nondegenerate state-dependent mobility
Shared title terminologymath.NAYonghyeon Jeon, Kiwoong Kwon
Exact Integration of ReLU-type Neural Networks for Solving PDEs
Shared title terminologymath.NAShima Baharlouei, Ignacio Brevis, Reuben Menezes et al.