Open Access
- 1 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:
- Contribution of Asian emissions to upper tropospheric CO over the remote PacificAtmospheric Chemistry and Physics, 2022
- Improved estimation of volcanic SO2 injections from satellite retrievals and Lagrangian transport simulations: the 2019 Raikoke eruptionAtmospheric Chemistry and Physics, 2022
- The digital revolution of Earth-system scienceNature Computational Science, 2021
- Aerosol variations in the upper troposphere and lower stratosphere over the Tibetan PlateauEnvironmental Research Letters, 2020
- Earth System Modeling Must Become More Energy EfficientEos, 2020
- High-Resolution Source Estimation of Volcanic Sulfur Dioxide Emissions Using Large-Scale Transport Simulations2020
- Long-range transport of volcanic aerosol from the 2010 Merapi tropical eruption to AntarcticaAtmospheric Chemistry and Physics, 2018
- Equatorward dispersion of a high-latitude volcanic plume and its relation to the Asian summer monsoon: a case study of the Sarychev eruption in 2009Atmospheric Chemistry and Physics, 2017
- Lagrangian transport simulations of volcanic sulfur dioxide emissions: Impact of meteorological data productsJournal of Geophysical Research: Atmospheres, 2016
- 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