Adaptive Spectral Block Floating Point for Discontinuous Galerkin Simulations [14:15 - 14:40]
Authors: Shivam Sundriyal, Markus Büttner, Vadym Aizinger
Adaptive Spectral Block Floating Point for Discontinuous Galerkin Simulations
Mixed-precision arithmetic is increasingly becoming central to HPC, driven by AI-targeted hardware that delivers high throughput in FP16, BF16, FP8, and even FP4. The existing numerical approaches try to exploit this computationally efficient hardware by subdividing the datatypes into high- and low-precision parts accompanied by re-formulating the standard solution algorithms, such as linear solvers, to become more robust with respect to the roundoff error. Some such approaches, originally developed for AI workloads, are based on block floating point number formats representing a block of floating point numbers with a shared exponent.
Our approach takes the idea of a block floating point number representation to a next level by creating a specialized shared exponent datatype for representing the entire local solution vector (degrees of freedom) of a modal discontinuous Galerkin (DG) discretization. The proposed datatype, called Adaptive Spectral Block Floating Point (ASBFP), is particularly memory-efficient since it locally adapts the mantissa lengths corresponding to different polynomial degrees exploiting the spectral decay property of modal DG coefficients for smooth solutions. The same approach works just as well for non-smooth solutions (such as shocks and discontinuities) and easily generalizes to multidimensions.
We demonstrate the computational efficiency of our approach using a range of standard linear and nonlinear problems in one, two, and three dimensions on tensor-product and simplex meshes. Implemented in a form of a templatized library with a clearly defined front- and backends, our datatype can be used as a drop-in replacement for solution vectors in existing solver software and, at the same time, tuned to efficiently use the available hardware. Furthermore the users of the ASBFP format can precisely select the desired floating point accuracy to obtain the optimal compromise between the accuracy and computational efficiency.