Preprints
https://doi.org/10.5194/egusphere-2024-2539
https://doi.org/10.5194/egusphere-2024-2539
25 Sep 2024
 | 25 Sep 2024

A GPU-parallelization of the neXtSIM-DG dynamical core (v0.3.1)

Robert Jendersie, Christian Lessig, and Thomas Richter

Abstract. The cryosphere plays a crucial role in Earth’s climate system, making accurate sea ice simulation essential for improving climate projections. To achieve higher resolution simulations, graphics processing units (GPUs) have become increasingly appealing due to their higher floating point peak performance and superior energy efficiency compared to CPUs. However, harnessing the full theoretical performance of GPUs often requires significant effort in redesigning algorithms and careful implementation. Recently, several frameworks have emerged, aiming to simplify general-purpose GPU programming. In this study, we evaluate multiple such frameworks, including CUDA, SYCL, Kokkos, and PyTorch, for the parallelization of neXtSIM-DG, a finite-element-based dynamical core for sea ice. Based on our assessment of usability and performance, CUDA demonstrates the best performance, while Kokkos is a suitable option for its robust heterogeneous computing capabilities. Our complete implementation of the momentum equation using Kokkos achieves a sixfold speedup on the GPU compared to our OpenMP-based CPU code, while maintaining competitiveness when run on the CPU. Additionally, we explore the impact of different discretization orders and the use of lower precision floating-point types on the GPU, showing that switching to single precision can further accelerate sea ice codes.

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this preprint. The responsibility to include appropriate place names lies with the authors.
Robert Jendersie, Christian Lessig, and Thomas Richter

Status: final response (author comments only)

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
  • RC1: 'Comment on egusphere-2024-2539', Till Rasmussen, 25 Nov 2024
  • RC2: 'Comment on egusphere-2024-2539', Anonymous Referee #2, 28 Nov 2024
Robert Jendersie, Christian Lessig, and Thomas Richter
Robert Jendersie, Christian Lessig, and Thomas Richter

Viewed

Total article views: 345 (including HTML, PDF, and XML)
HTML PDF XML Total BibTeX EndNote
169 57 119 345 2 8
  • HTML: 169
  • PDF: 57
  • XML: 119
  • Total: 345
  • BibTeX: 2
  • EndNote: 8
Views and downloads (calculated since 25 Sep 2024)
Cumulative views and downloads (calculated since 25 Sep 2024)

Viewed (geographical distribution)

Total article views: 325 (including HTML, PDF, and XML) Thereof 325 with geography defined and 0 with unknown origin.
Country # Views %
  • 1
1
 
 
 
 
Latest update: 19 Dec 2024
Download
Short summary
Climate change is an important subject for current and future generations. Computer simulations are critical to understand how climate change will effect local communities. An important part of such simulations is sea ice, which affects even distant areas in the long term. In our work, we explore how GPUs, computer chips originally designed for gaming, allow for the faster and more energy efficient simulation of a new computer program for sea ice simulations, the neXtSIM-DG dynamical core.