Journal cover Journal topic
Geoscientific Model Development An interactive open-access journal of the European Geosciences Union
https://doi.org/10.5194/gmd-2018-42
© Author(s) 2018. This work is distributed under
the Creative Commons Attribution 4.0 License.
Development and technical paper
24 Apr 2018
Review status
This discussion paper is a preprint. It is a manuscript under review for the journal Geoscientific Model Development (GMD).
MP CBM-Z V1.0: design for a new CBM-Z gas-phase chemical mechanism architecture for next generation processors
Hui Wang1, Junmin Lin2, Qizhong Wu1, Huansheng Chen3, Xiao Tang3, Zifa Wang3, Xueshun Chen3, Huaqiong Cheng1, and Lanning Wang1 1College of Global Change and Earth System Science, Joint Center for Global Changes Studies, Beijing Normal University, Beijing 100875, China
2Intel (China) Corporation, Beijing 100013, China
3State Key Laboratory of Atmospheric Boundary Layer Physics and Atmospheric Chemistry, Institute of Atmospheric Physics, Chinese Academy of Sciences, Beijing 100029, China
Abstract. Precise and rapid air quality simulation and forecasting are limited by the computation performance of the air quality model, and the gas-phase chemistry module is the most time-consuming function in the air quality model. In this study, we designed a new framework for the widely used Carbon Bond Mechanism Z (CBM-Z) gas-phase chemical kinetics kernel to adapt the Single Instruction Multiple Data (SIMD) technology in the next-generation processors for improving its calculation performance. The optimization implements the fine-grain level parallelization of CBM-Z by improving its vectorization ability. Through constructing loops and integrating the main branches, e.g. diverse chemistry sub-schemes, multiple spatial points in the model can be operated simultaneously on vector processing units (VPU). The Intel Xeon E5-2697 V4 CPU and Intel Xeon Phi 7250 Knight Landing (KNL) are used as the benchmark processors. The validation of the model outputs indicates that the relative errors are in an acceptable range (< 0.05 %). The results show that the optimization resulted in a 4.24x speedup on a single CPU core and 17.33x speedup on a single KNL core. For the node, the speedup on the CPU can reach 113.42x using Message Passing Interface (MPI) and 118.13x using OpenMP, and the speedup on the KNL node can reach 170.31x using MPI and 179.95x using OpenMP. The speedup of the optimized CBM-Z is approximately 50 ~ 52 % higher on a 1-socket KNL platform than on a 2-socket CPU platform. This work improves the performance of the CBM-Z chemical kinetics kernel as well as the calculation efficiency of the air quality model, which can directly improve the practical value of the air quality model in scientific simulation and routine forecasting. Furthermore, since this optimization seeks to improve the utilization of the VPU, the model is more suitable for the new generation processors adopting the more advanced SIMD technology.
Citation: Wang, H., Lin, J., Wu, Q., Chen, H., Tang, X., Wang, Z., Chen, X., Cheng, H., and Wang, L.: MP CBM-Z V1.0: design for a new CBM-Z gas-phase chemical mechanism architecture for next generation processors, Geosci. Model Dev. Discuss., https://doi.org/10.5194/gmd-2018-42, in review, 2018.
Hui Wang et al.
Hui Wang et al.

Model code and software

Design a new architecture of CBMZ gas-phase chemical mechanism for the next generation processors H. Wang, J. Lin, Q. Wu, H. Chen, X. Tang, Z. Wang, X. Chen, and H. Cheng https://doi.org/10.5281/zenodo.1161576
Hui Wang et al.

Viewed

Total article views: 215 (including HTML, PDF, and XML)

HTML PDF XML Total Supplement BibTeX EndNote
167 41 7 215 11 3 4

Views and downloads (calculated since 24 Apr 2018)

Cumulative views and downloads (calculated since 24 Apr 2018)

Viewed (geographical distribution)

Total article views: 215 (including HTML, PDF, and XML)

Thereof 215 with geography defined and 0 with unknown origin.

Country # Views %
  • 1

Saved

Discussed

Latest update: 23 May 2018
Publications Copernicus
Download
Short summary
A new framework was designed for the widely used Carbon Bond Mechanism Z (CBM-Z) gas-phase chemical kinetics kernel to adapt the Single Instruction Multiple Data (SIMD) technology in the next generation processors like KNL for improving its calculation performance. And the optimization is aimed to implement the fine-grain level parallelization of CBM-Z. The test results showed significant acceleration with our optimization on both CPU and KNL platform.
A new framework was designed for the widely used Carbon Bond Mechanism Z (CBM-Z) gas-phase...
Share