11
views
0
recommends
+1 Recommend
0 collections
    0
    shares
      • Record: found
      • Abstract: found
      • Article: found
      Is Open Access

      Fluid Simulations Accelerated With 16 Bits: Approaching 4x Speedup on A64FX by Squeezing ShallowWaters.jl Into Float16

      research-article

      Read this article at

      Bookmark
          There is no author summary for this article yet. Authors can add summaries to their articles on ScienceOpen to make them more accessible to a non-specialist audience.

          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.

          Key Points

          • The first fluid circulation model entirely based on 16‐bit instead of conventional 64‐bit calculations approaches 4x speedups on hardware

          • Systematic rescaling squeezes all calculations into the very limited range of Float16, making use of 97% of the available numbers

          • Compensated summation in the precision‐critical time integration minimizes rounding errors from Float16 and is faster than mixed precision

          Related collections

          Most cited references62

          • Record: found
          • Abstract: not found
          • Article: not found

          Julia: A Fresh Approach to Numerical Computing

            Bookmark
            • Record: found
            • Abstract: not found
            • Book: not found

            Atmospheric and Oceanic Fluid Dynamics

              Bookmark
              • Record: found
              • Abstract: not found
              • Book Chapter: not found

              Computational Design of the Basic Dynamical Processes of the UCLA General Circulation Model

                Bookmark

                Author and article information

                Contributors
                milan.kloewer@physics.ox.ac.uk
                Journal
                J Adv Model Earth Syst
                J Adv Model Earth Syst
                10.1002/(ISSN)1942-2466
                JAME
                Journal of Advances in Modeling Earth Systems
                John Wiley and Sons Inc. (Hoboken )
                1942-2466
                11 February 2022
                February 2022
                : 14
                : 2 ( doiID: 10.1002/jame.v14.2 )
                : e2021MS002684
                Affiliations
                [ 1 ] Atmospheric, Oceanic and Planetary Physics University of Oxford Oxford UK
                [ 2 ] European Centre for Medium‐Range Weather Forecasts Reading UK
                [ 3 ] Mathematical Institute University of Oxford Oxford UK
                Author notes
                [*] [* ] Correspondence to:

                M. Klöwer,

                milan.kloewer@ 123456physics.ox.ac.uk

                Author information
                https://orcid.org/0000-0002-3920-4356
                https://orcid.org/0000-0001-7235-6450
                https://orcid.org/0000-0003-1669-9445
                https://orcid.org/0000-0002-2118-5417
                https://orcid.org/0000-0002-7121-2196
                Article
                JAME21512 2021MS002684
                10.1029/2021MS002684
                9287017
                fc2611e7-92dd-4c63-84b2-012bc9b8e9f0
                © 2022 The Authors. Journal of Advances in Modeling Earth Systems published by Wiley Periodicals LLC on behalf of American Geophysical Union.

                This is an open access article under the terms of the http://creativecommons.org/licenses/by/4.0/ License, which permits use, distribution and reproduction in any medium, provided the original work is properly cited.

                History
                : 16 November 2021
                : 02 July 2021
                : 22 November 2021
                Page count
                Figures: 5, Tables: 0, Pages: 14, Words: 9243
                Funding
                Funded by: Natural Environmental Research Council
                Award ID: NE/L002612/1
                Funded by: European Research Council
                Award ID: 741112
                Funded by: EU Horizon 2020
                Award ID: 823988
                Funded by: Engineering and Physical Sciences Research Council
                Award ID: EP/P020720/1
                Funded by: Royal Society , doi 10.13039/501100000288;
                Categories
                Atmospheric Composition and Structure
                Air/Sea Constituent Fluxes
                Volcanic Effects
                Biogeosciences
                Climate Dynamics
                Modeling
                Computational Geophysics
                Modeling
                Numerical Solutions
                Cryosphere
                Avalanches
                Mass Balance
                Modeling
                Geodesy and Gravity
                Mass Balance
                Ocean Monitoring with Geodetic Techniques
                Ocean/Earth/atmosphere/hydrosphere/cryosphere interactions
                Global Change from Geodesy
                Global Change
                Abrupt/Rapid Climate Change
                Climate Variability
                Climate Dynamics
                Earth System Modeling
                Impacts of Global Change
                Land/Atmosphere Interactions
                Oceans
                Regional Climate Change
                Sea Level Change
                Solid Earth
                Water Cycles
                Hydrology
                Climate Impacts
                Hydrological Cycles and Budgets
                Land/Atmosphere Interactions
                Modeling
                Informatics
                Computational Models, Algorithms
                High‐performance Computing
                Modeling
                Numerical Algorithms
                Marine Geology and Geophysics
                Gravity and Isostasy
                Atmospheric Processes
                Climate Change and Variability
                Climatology
                General Circulation
                Land/Atmosphere Interactions
                Ocean/Atmosphere Interactions
                Regional Modeling
                Theoretical Modeling
                Turbulence
                Oceanography: General
                Climate and Interannual Variability
                Numerical Modeling
                Natural Hazards
                Atmospheric
                Geological
                Oceanic
                Physical Modeling
                Climate Impact
                Risk
                Disaster Risk Analysis and Assessment
                Nonlinear Geophysics
                Turbulence
                Oceanography: Physical
                Air/Sea Interactions
                Decadal Ocean Variability
                General Circulation
                Ocean influence of Earth rotation
                Sea Level: Variations and Mean
                Surface Waves and Tides
                Tsunamis and Storm Surges
                Turbulence, Diffusion, and Mixing Processes
                Paleoceanography
                Abrupt/Rapid Climate Change
                Policy Sciences
                Benefit‐cost Analysis
                Radio Science
                Radio Oceanography
                Seismology
                Earthquake Ground Motions and Engineering Seismology
                Volcano Seismology
                Space Plasma Physics
                Turbulence
                Volcanology
                Volcano/Climate Interactions
                Atmospheric Effects
                Volcano Monitoring
                Effusive Volcanism
                Mud Volcanism
                Explosive Volcanism
                Volcanic Hazards and Risks
                Research Article
                Research Article
                Custom metadata
                2.0
                February 2022
                Converter:WILEY_ML3GV2_TO_JATSPMC version:6.1.7 mode:remove_FC converted:15.07.2022

                low precision,floating‐point numbers,climate models,rounding errors,hardware acceleration

                Comments

                Comment on this article