Journal article icon

Journal article

Fluid simulations accelerated with 16 bits: Approaching 4x speedup on A64FX by squeezing ShallowWaters.jl into Float16

Abstract:
Most Earth-system simulations run on conventional central processing units in 64-bit double precision floating-point numbers Float64, although the need for high-precision calculations in the presence of large uncertainties has been questioned. Fugaku, currently the world's fastest supercomputer, is based on A64FX microprocessors, which also support the 16-bit low-precision format Float16. We investigate the Float16 performance on A64FX with ShallowWaters.jl, the first fluid circulation model that runs entirely with 16-bit arithmetic. The model implements techniques that address precision and dynamic range issues in 16 bits. The precision-critical time integration is augmented to include compensated summation to minimize rounding errors. Such a compensated time integration is as precise but faster than mixed precision with 16 and 32-bit floats. As subnormals are inefficiently supported on A64FX the very limited range available in Float16 is 6 × 10−5 to 65,504. We develop the analysis-number format Sherlogs.jl to log the arithmetic results during the simulation. The equations in ShallowWaters.jl are then systematically rescaled to fit into Float16, using 97% of the available representable numbers. Consequently, we benchmark speedups of up to 3.8x on A64FX with Float16. Adding a compensated time integration, speedups reach up to 3.6x. Although ShallowWaters.jl is simplified compared to large Earth-system models, it shares essential algorithms and therefore shows that 16-bit calculations are indeed a competitive way to accelerate Earth-system simulations on available hardware.
Publication status:
Published
Peer review status:
Peer reviewed

Actions


Access Document


Publisher copy:
10.1029/2021ms002684

Authors


More by this author
Institution:
University of Oxford
Division:
MPLS
Department:
Physics
Sub department:
Atmos Ocean & Planet Physics
Role:
Author
More by this author
Role:
Author
ORCID:
0000-0001-7235-6450
More by this author
Role:
Author
ORCID:
0000-0003-1669-9445
More by this author
Role:
Author
ORCID:
0000-0002-2118-5417
More by this author
Institution:
University of Oxford
Division:
MPLS
Department:
Physics
Sub department:
Atmos Ocean & Planet Physics
Oxford college:
Jesus College
Role:
Author
ORCID:
0000-0002-7121-2196


Publisher:
Wiley
Journal:
Journal of Advances in Modelling Earth Systems More from this journal
Volume:
14
Issue:
2
Article number:
e2021MS002684
Publication date:
2022-02-11
Acceptance date:
2021-11-22
DOI:
EISSN:
1942-2466


Language:
English
Keywords:
Pubs id:
1240274
Local pid:
pubs:1240274
Deposit date:
2022-02-21

Terms of use



Views and Downloads






If you are the owner of this record, you can report an update to it here: Report update to this record

TO TOP