Investigating the Impact of Mixed Precision on Correctness for a Large Climate Code

Daniel J. Milroy, Allison H. Baker, John M. Dennis, Andrew Gettelman, Dorit M. Hammerling

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

3 Scopus citations

Abstract

Earth system models (ESMs) are computationally expensive and represent many complex processes on a wide range of scales from molecular to global. Certain ESM computations require high precision while others, such as atmospheric microphysics (e.g., precipitation) which are approximated by bulk properties, should not. As such, atmospheric microphysics models are prime candidates for conversion to single precision, which afford distinct computational and memory advantages over typical double precision numbers. However, care must be taken as indiscriminate type casting to single precision can result in numerical instability and divergent output when applied naively. In this work we relate our experiences attempting to improve the performance of the Morrison-Gettelman microphysics package (MG2) in a popular ESM by modifying it to compute in single precision without sacrificing correctness. We find that modification of the entire MG2 package to compute with single precision floats achieves a respectable performance increase but does not appear to be correct in terms of maintaining consistency with double-precision MG2. On the other hand, narrowing the scope of our conversion to a couple expensive subprograms yields more satisfying results in terms of correctness but with negligible overall performance improvement. We evaluate correctness with both an objective statistical tool and traditional approaches more familiar to climate scientists. While we are still working toward our ultimate goal of improving the performance of MG2 without negatively affecting model output, we believe that our experiences may be helpful to other groups pursuing similar goals.

Original languageEnglish
Title of host publicationProceedings of Correctness 2019
Subtitle of host publication3rd International Workshop on Software Correctness for HPC Applications - Held in conjunction with SC 2019: The International Conference for High Performance Computing, Networking, Storage and Analysis
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages44-51
Number of pages8
ISBN (Electronic)9781728160153
DOIs
StatePublished - Nov 2019
Event3rd IEEE/ACM International Workshop on Software Correctness for HPC Applications, Correctness 2019 - Denver, United States
Duration: Nov 18 2019 → …

Publication series

NameProceedings of Correctness 2019: 3rd International Workshop on Software Correctness for HPC Applications - Held in conjunction with SC 2019: The International Conference for High Performance Computing, Networking, Storage and Analysis

Conference

Conference3rd IEEE/ACM International Workshop on Software Correctness for HPC Applications, Correctness 2019
Country/TerritoryUnited States
CityDenver
Period11/18/19 → …

Keywords

  • application performance
  • earth system model
  • mixed precision
  • parameterization
  • statistical consistency

Fingerprint

Dive into the research topics of 'Investigating the Impact of Mixed Precision on Correctness for a Large Climate Code'. Together they form a unique fingerprint.

Cite this