August 2022

Conference Paper

Developing an ELM Ecosystem Dynamics Model on GPU with OpenACC

By:
Schwartz, Peter D; Wang, Dali ; Yuan, Fengming ; Thornton, Peter E
Journal Name:
International Conference on Computational Science
Page Number:
291-303
Volume:
13351
Issue Number:
2
Book Title:
Proceedings of the 22nd International Conference on Computational Science, Part II
Publication Date:
August 4, 2022
Publisher Location:
Springer, Cham, Switzerland
Conference Name:
ICCS: International Conference on Computational Science
Conference Location:
London, United Kingdom
Conference Sponsor:
Springer
View DOI Listing:
https://doi.org/10.1007/978-3-031-08754-7_38

Abstract

Porting a complex scientific code, such as the E3SM land model (ELM), onto a new computing architecture is challenging. The paper presents design strategies and technical approaches to develop an ELM ecosystem dynamics model with compiler directives (OpenACC) on NVIDIA GPUs. The code has been refactored with advanced OpenACC features (such as deepcopy and routine directives) to reduce memory consumption and to increase the levels of parallelism through parallel loop reconstruction and new data structures. As a result, the optimized parallel implementation achieved more than a 140-time speedup (50 ms vs 7600 ms), compared to a naive implementation that uses OpenACC routine directive and parallelizes the code across existing loops on a single NVIDIA V100. On a fully loaded computing node with 44 CPUs and 6 GPUs, the code achieved over a 3.0-times speedup, compared to the original code on the CPU. Furthermore, the memory footprint of the optimized parallel implementation is 300 MB, which is around 15% of the 2.15 GB of memory consumed by a naive implementation. This study is the first effort to develop the ELM component on GPUs efficiently to support ultra-high-resolution land simulations at continental scales.