NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Comment on egusphere-2022-943

Johann Dahm, Eddie Davis, Florian Deconinck, Oliver D. Elbert, Rhea George, Jeremy McGibbon, Tobias Wicky, Elynn Wu, Christopher Kung, Tal Ben-Nun, Lucas Harris, Linus Groner, Oliver FuhrerOpenalex Unknown 2022 · OpenAlex

Abstract

Progress in leveraging current and emerging high-performance computing infrastructures using traditional weather and climate models has been slow. This has become known more broadly as the software productivity gap. With the end of Moore's Law driving forward rapid specialization of hardware architectures, building simulation codes on a low-level language with hardware specific optimizations is a significant risk. As a solution, we present Pace, an implementation of the nonhydrostatic FV3 dynamical core which is entirely Python-based. In order to achieve high performance on a diverse set of hardware architectures, Pace is written using the GT4Py domain-specific language. We demonstrate that with this approach we can achieve portability and performance, while significantly improving the readability and maintainability of the code as compared to the Fortran reference implementation. We show that Pace can run at scale on leadership-class supercomputers and achieve performance speeds 3.5–4 times faster than the Fortran code on GPU-accelerated supercomputers. Furthermore, we demonstrate how a Python-based simulation code facilitates existing or enables entirely new use-cases and workflows. Pace demonstrates how a high-level language can insulate us from disruptive changes, provide a more productive development environment, and facilitate the integration with new technologies such as machine learning.

Introduction: The Software Productivity Gap

The field of weather and climate modeling faces a significant challenge: the "software productivity gap." For decades, models have been written in low-level Fortran to maximize performance on CPU architectures. However, the shift toward specialized hardware like GPUs has made maintaining these legacy codebases increasingly difficult. Porting Fortran code to GPUs often requires invasive compiler directives that clutter the source code and hinder scientific development. Pace addresses this by offering a performance-portable, Python-based implementation of the Finite-Volume Cubed-Sphere (FV3) dynamical core—the engine behind NOAA’s Unified Forecast System.

Methodology: GT4Py and the Pace Framework

The core of Pace's innovation lies in its use of GT4Py (GridTools for Python), a domain-specific language (DSL) that allows for a clean separation of concerns. In traditional models, numerical algorithms and hardware optimizations are often intermingled, making the code brittle and difficult to port. In Pace, scientists define numerical stencils using a high-level, Pythonic syntax. The GT4Py compiler then analyzes these stencils and generates highly optimized low-level code (C++ or CUDA) tailored for the target hardware.

To further enhance performance and eliminate the "Python tax"—the overhead of the Python interpreter—Pace integrates the Data-Centric (DaCe) parallel programming framework. DaCe allows the entire simulation loop to be represented as a stateful dataflow multigraph, which can be compiled into a single, efficient executable. This modular, object-oriented design facilitates easier testing and component swapping compared to monolithic Fortran structures.

Validation and Benchmarking

The authors validated Pace using standard atmospheric benchmarks, including the Jablonowski and Williamson (2006) baroclinic instability test, which simulates the evolution of a storm system to ensure the dynamical core handles fluid physics correctly. Real-world NCEP Reanalysis data was used for initialization. To ensure scientific integrity, intermediate data from the original Fortran FV3 model was compared against Pace outputs using the Serialbox library, confirming accuracy within roundoff error (relative difference of $10^{-14}$).

Results: Performance and Scalability

Performance evaluations on the Piz Daint supercomputer demonstrated that Pace runs 3.26x to 4x faster than the optimized Fortran reference on NVIDIA P100 GPUs. The model also exhibited perfect weak scaling up to 864 nodes, proving its readiness for kilometer-scale global simulations. In weak scaling tests, the workload per processor remains constant as the total number of processors increases; Pace's ability to maintain a constant time-per-step across nearly a thousand nodes is critical for leadership-class supercomputing workloads. While chaotic divergence is expected in atmospheric modeling over time, Pace's results remained physically consistent with the reference model.

Discussion: New Workflows and Future Directions

The transition to a Python-based framework enables novel workflows. Python's introspection capabilities allow for sophisticated testing, such as verifying that no unintended memory allocations occur during simulation steps or checking that temporary variables are properly reset. Furthermore, Pace is "ML-ready" by design; integrating machine learning models—such as neural network-based physical parameterizations built in TensorFlow—is a straightforward task of swapping Python classes.

Current limitations include sub-optimal CPU performance (approximately 0.2x that of Fortran) and the absence of features like regional nesting. Future development will focus on CPU optimization and porting the broader physics suite (e.g., clouds, radiation) to the Pace framework. Pace demonstrates that high-level languages can drive leadership-class supercomputing without sacrificing performance, providing a sustainable path forward for the climate science community.

Summary updated

BibTeX
@inproceedings{dahm2022comment,
  author = {Johann Dahm and Eddie Davis and Florian Deconinck and Oliver D. Elbert and Rhea George and Jeremy McGibbon and Tobias Wicky and Elynn Wu and Christopher Kung and Tal Ben-Nun and Lucas Harris and Linus Groner and Oliver Fuhrer and Jeremy J McGibbon},
  title = {{Comment on egusphere-2022-943}},
  booktitle = {Openalex Unknown},
  year = {2022},
  doi = {10.5194/egusphere-2022-943-rc1},
}
Figure