Open Access
- 3 February 2024
- other
- Published by Copernicus GmbH
- Vol. 2024, 1-26
Abstract
Lagrangian particle dispersion models are indispensable tools for the study of atmospheric transport processes. However, Lagrangian transport simulations can become numerically expensive when large numbers of air parcels are involved. To accelerate these simulations, we made considerable efforts to port the Massive-Parallel Trajectory Calculations (MPTRAC) model to graphics processing units (GPUs). Here we discuss performance optimizations of the major bottleneck of the GPU code of MPTRAC, the advection kernel. Timeline, roofline, and memory analyses of the baseline GPU code revealed that the application is memory-bound and performance suffers from near-random memory access patterns. By changing the data structure of the horizontal wind and vertical velocity fields of the global meteorological data driving the simulations from Structure of Arrays (SoA) to Array of Structures (AoS), and by introducing a sorting method for better memory alignment of the particle data, performance was greatly improved. We evaluated the performance on NVIDIA A100 GPUs of the Jülich Wizard for European Leadership Science (JUWELS) Booster module at the Jülich Supercomputing Center, Germany. For our largest test case, transport simulations with 108 particles driven by the European Centre for Medium-Range Weather Forecasts (ECMWF) ERA5 reanalysis, we found that the runtime for the full set of physics computations was reduced by 75 %, including a reduction of 85 % for the advection kernel. In addition to demonstrating the benefits of code optimization for GPUs, we show that the runtime of CPU-only simulations is also improved. For our largest test case, we found a runtime reduction of 34 % for the physics computations, including a reduction of 65 % for the advection kernel. The code optimizations discussed here bring the MPTRAC model closer to applications on upcoming exascale high performance computing systems, and will also be of interest for optimizing the performance of other models using particle methods.Keywords
This publication has 33 references indexed in Scilit:
- The digital revolution of Earth-system scienceNature Computational Science, 2021
- Earth System Modeling Must Become More Energy EfficientEos, 2020
- High-Resolution Source Estimation of Volcanic Sulfur Dioxide Emissions Using Large-Scale Transport Simulations2020
- The ERA5 global reanalysisQuarterly Journal of the Royal Meteorological Society, 2020
- Lagrangian transport simulations of volcanic sulfur dioxide emissions: Impact of meteorological data productsJournal of Geophysical Research: Atmospheres, 2016
- Thrust2012
- The ERA‐Interim reanalysis: configuration and performance of the data assimilation systemQuarterly Journal of the Royal Meteorological Society, 2011
- A near‐field tool for simulating the upstream influence of atmospheric observations: The Stochastic Time‐Inverted Lagrangian Transport (STILT) modelJournal of Geophysical Research: Atmospheres, 2003
- A new Chemical Lagrangian Model of the Stratosphere (CLaMS) 1. Formulation of advection and mixingJournal of Geophysical Research: Atmospheres, 2002
- A new Chemical Lagrangian Model of the Stratosphere (CLaMS) 2. Formulation of chemistry scheme and initializationJournal of Geophysical Research: Atmospheres, 2002