Adapting Atmospheric Chemistry Components for Efficient GPU Accelerators
Ruiz, Dawson, Acosta et al.
Atmospheric models demand a lot of computational power and solving the chemical processes is one of its most computationally intensive components. This work shows how to improve the computational performance of the Multiscale Online Nonhydrostatic AtmospheRe CHemistry model (MONARCH), a chemical weather prediction system developed by the Barcelona Supercomputing Center. The model implements the new flexible external package Chemistry Across Multiple Phases (CAMP) for the solving of gas- and aerosol-phase chemical processes, that allows multiple chemical processes to be solved simultaneously as a single system. We introduce a novel strategy to simultaneously solve multiple instances of a chemical mechanism, represented in the model as grid-cells, obtaining a speedup up to 9x using thousands of cells. In addition, we present a GPU strategy for the most time-consuming function of CAMP. The GPU version achieves up to 1.2x speedup compared to CPU. Also, we optimize the memory access in the GPU to increase its speedup up to 1.7x.
academic
Adapting Atmospheric Chemistry Components for Efficient GPU Accelerators
Atmospheric models require substantial computational resources, with chemical process solving being one of the most computationally intensive components. This study demonstrates how to improve the computational performance of the MONARCH (Multiscale Online Nonhydrostatic Atmospheric Chemistry) model developed at the Barcelona Supercomputing Center. The model implements a new flexible external package "Chemistry Across Multiple Phases" (CAMP) to solve gas-phase and aerosol-phase chemical processes, allowing multiple chemical processes to be solved simultaneously as a single system. The research proposes a novel strategy to simultaneously solve multiple instances of chemical mechanisms (represented as grid cells in the model), achieving up to 9× speedup using thousands of cells. Additionally, GPU strategies are proposed for CAMP's most time-consuming functions, with the GPU version achieving up to 1.2× speedup compared to CPU implementation, further improving the speedup to 1.7× through GPU memory access optimization.
Computational Challenges: Atmospheric models are mathematical representations of atmospheric dynamics, physics, chemistry, and radiation processes; their complexity results in enormous computational costs
Chemical Process Bottleneck: Chemical process solving can consume 80% of model execution time, representing a performance bottleneck
Parallelization Requirements: Existing models parallelize through domain decomposition, but individual chemical solvers remain serial
CPU-based Solvers: Parallelization through domain decomposition requires thousands of grid cells for significant acceleration
GPU-specific Methods: While offering better performance (e.g., 59× speedup), they are difficult to adapt to atmospheric models and typically target only specific types of chemical equations
Data Transfer Overhead: CPU-GPU data transfer becomes a performance bottleneck in GPU implementations
The paper cites 12 related references, primarily including:
Technical documentation for CAMP framework and MONARCH model
Prior research on GPU-accelerated chemical kinetics
Foundational literature on atmospheric modeling and parallel computing
Technical resources for numerical solving libraries such as CVODE
Overall Assessment: This is a high-quality technical paper targeting practical applications. The proposed multi-cells strategy is simple and effective; while GPU implementation is limited by data transfer, it demonstrates good computational potential. The research provides valuable technical pathways for performance optimization of atmospheric chemistry models with significant practical value.