Single precision ocean model offers long-term climate accuracy and faster runs
FESOM2.8 in single precision: climate fidelity over six decades and performance on CPUs and GPUs
Mathematical SoftwarePerformance
Summary
Using fewer decimal places in ocean climate models can speed up simulations, but it's unclear if this affects long-term accuracy. The authors tested a single precision version of the FESOM2 ocean model over 60 years and found initial problems with salinity and heat content drift. By improving how small changes are tracked, they reduced errors to negligible levels, matching the accuracy of standard double precision runs. This method runs about 35% faster on CPUs and also speeds up GPUs while using less memory.
What this means in practice
- •For climate modelers: Run global ocean simulations with single precision to reduce runtime by a third without losing long-term climate accuracy.
- •For high performance computing teams: Optimize ocean model implementations on GPUs to achieve both speed gains and memory savings with improved precision handling.
Authors
Suvarchal Kumar Cheedela, Nikolay V. Koldunov, Sergey Danilov, Jan Streffing, Dmitry Sidorenko, Thomas Jung
Abstract
Halving the floating-point precision of an ocean model can make it substantially faster, but whether the rounding errors stay negligible over climate time scales has rarely been tested. We implement single precision in the global ocean-sea-ice model FESOM2 and compare 60-year hindcasts with double-precision controls. A first implementation lost salt steadily, accumulated a heat-content deficit of 129 ZJ, and shifted major ocean fronts. Controlled experiments trace the drift to the tracer update: small increments added to a large salinity value are rounded away, and the increments themselves are biased. Accumulating tracer tendencies and layer thicknesses in 64 bits, and carrying the rounding error of each tracer update into the next, removes the drift for at most 8% additional runtime. Single- and double-precision simulations then differ in heat content and mean state about as much as two double-precision runs with slightly perturbed initial conditions, sea ice differs by at most 0.2%, and he salinity difference is four orders of magnitude smaller than before. In the coupled model AWI-ESM3, single precision adds no detectable heat source or sink over 60 years. Single precision speeds up the 60-year hindcasts by a factor of 1.35, and the model by up to 1.66 on meshes of up to 5 km resolution; on GPUs, a C++/Kokkos version runs up to 1.27 times faster and needs 43% less memory. Whether reduced precision is safe for climate integrations is decided by long-term budgets, not by short tests.