Acceleration of WRF Physical Parameterization Scheme YSU via OpenACC directives
In order to improve the operational efficiency of the Weather Research and Forecast (WRF) model, the OpenACC instruction is used to accelerate the microphysics scheme embedded in the Weather Research and Forecast model. As one of the time-consuming physical parameterization schemes, the WRF Planetary Boundary Layer Microphysics Scheme (YSU) is parallelized to the graphics processing unit. Several methods were used to rewrite the original Fortran code to improve parallelism, including loop-in-shift, improved array dimensions, and so on. The transcoding tool GPUFORT is also applied to generate HIP C code for an explicit kernel that can be executed on a domestic accelerator. In addition, on this basis, the performance analysis is done and the merging kernel is optimized to reduce the time overhead of starting the kernel as much as possible. The project was tested by using multiple heterogeneous platforms including NVIDIA and domestic accelerators, as well as a variety of compilers, and the acceleration effects of different situations were compared. Experimental results show that under the premise of passing the correctness verification, the heterogeneous optimized version of YSU achieves a 19.90-fold acceleration on a single NVIDIA Tesla P100 accelerator card and a 17.33-fold acceleration on a single domestic accelerator. The acceleration effect of the domestic accelerator in the physical parameterization scheme reflects the successful application of the domestic accelerator in the WRF model.
Authors
- Gao‐Jun Teng (ORCID: https://orcid.org/0000-0003-1145-0798)
- Danqin Ren
- Lei Zhang (ORCID: https://orcid.org/0000-0001-6268-934X)
Institutions
- Zhengzhou University (CN)
Publication Details
- Published
- 2025-03-21
- DOI
- https://doi.org/10.1109/iscait64916.2025.11010255
- Primary Topic
- Nuclear reactor physics and engineering
- Type
- article
- Field-Weighted Citation Impact
- 0.00