Challenges of applying an embedded domain specific language for performance portability to Earth system models

This is a Preprint and has not been peer reviewed. This is version 1 of this Preprint.

Add a Comment

You must log in to post a comment.


Comments

There are no comments or no comments have been made public for this article.

Downloads

Download Preprint

Authors

Yen-Sen Lu, Daniel Caviedes-Voullième, Olaf Stein, Lars Hoffmann 

Abstract

Weather and climate modeling, reliant on substantial computational resources, faces challenges of escalating resource demands and energy consumption as problem sizes and model complexity increase. Leveraging Graphics Processing Units (GPUs) for accelerated simulations demands performance portability across diverse High Performance Computing (HPC) architectures. The concept of embedded Domain Specific Language (eDSL) emerges as a lightweight solution, aiming to streamline GPU utilization without extensive code rewrites and to enhance code portability across HPC architectures. This study explores the practical implementation of an eDSL within the Icosahedral Nonhydrostatic (ICON) weather and climate model, primarily written in Fortran. Our evaluation contrasts eDSL utilization within ICON against other Earth system models, with particular emphasis on three-dimensional mass transport, or advection. Through assessing the eDSL's efficectiveness in various models, especially its application in the ParFlow and EULAG models, insights into its potential for ICON emerge. While the eDSL presents a promising avenue for performance portability, challenges in adapting Fortran-based codes, GPU support, and resource allocation underscore the need for necessity for thorough planning and resource allocation in model development endeavors. Overall, the eDSL offers a viable pathway for harnessing GPU acceleration while mitigating the complexities of code portability across diverse HPC architectures, essential for advancing weather and climate modeling capabilities.

DOI

https://doi.org/10.31223/X5DM6M

Subjects

Computational Engineering, Earth Sciences

Keywords

embedded domain specific language, Climate model, fortran, c, GPU

Dates

Published: 2024-02-26 16:27

Last Updated: 2024-02-26 21:27

License

CC BY Attribution 4.0 International

Additional Metadata

Conflict of interest statement:
None

Data Availability (Reason not available):
All the codes can be found in the references.