4.6 Article

Computational Benefit of GPU Optimization for the Atmospheric Chemistry Modeling

Journal

JOURNAL OF ADVANCES IN MODELING EARTH SYSTEMS
Volume 10, Issue 8, Pages 1952-1969

Publisher

AMER GEOPHYSICAL UNION
DOI: 10.1029/2018MS001276

Keywords

-

Funding

  1. Office of Science of the U.S. Department of Energy [DE-AC05-00OR22725]
  2. National Science Foundation
  3. Office of Science (BER) of the U.S. Department of Energy
  4. National Science Foundation [OAC 1740250]
  5. UCAR [Z12-93537]

Ask authors/readers for more resources

Global chemistry-climate models are computationally burdened as the chemical mechanisms become more complex and realistic. Optimization for graphics processing units (GPU) may make longer global simulation with regional detail possible, but limited study has been done to explore the potential benefit for the atmospheric chemistry modeling. Hence, in this study, the second-order Rosenbrock solver of the chemistry module of CAM4-Chem is ported to the GPU to gauge potential speed-up. We find that on the CPU, the fastest performance is achieved using the Intel compiler with a block interleaved memory layout. Different combinations of compiler and memory layout lead to similar to 11.02x difference in the computational time. In contrast, the GPU version performs the best when using a combination of fully interleaved memory layout with block size equal to the warp size, CUDA streams for independent kernels, and constant memory. Moreover, the most efficient data transfer between CPU and GPU is gained by allocating the memory contiguously during the data initialization on the GPU. Compared to one CPU core, the speed-up of using one GPU alone reaches a factor of similar to 11.7x for the computation alone and similar to 3.82x when the data transfer between CPU and GPU is considered. Using one GPU alone is also generally faster than the multithreaded implementation for 16 CPU cores in a compute node and the single-source solution (OpenACC). The best performance is achieved by the implementation of the hybrid CPU/GPU version, but rescheduling the workload among the CPU cores is required before the practical CAM4-Chem simulation.

Authors

I am an author on this paper
Click your name to claim this paper and add it to your profile.

Reviews

Primary Rating

4.6
Not enough ratings

Secondary Ratings

Novelty
-
Significance
-
Scientific rigor
-
Rate this paper

Recommended

No Data Available
No Data Available