<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "https://jats.nlm.nih.gov/nlm-dtd/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" specific-use="SMUR" dtd-version="3.0" xml:lang="en">
<front>
<journal-meta>
<journal-id journal-id-type="publisher">EGUsphere</journal-id>
<journal-title-group>
<journal-title>EGUsphere</journal-title>
<abbrev-journal-title abbrev-type="publisher">EGUsphere</abbrev-journal-title>
<abbrev-journal-title abbrev-type="nlm-ta">EGUsphere</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub"></issn>
<publisher><publisher-name>Copernicus Publications</publisher-name>
<publisher-loc>Göttingen, Germany</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.5194/egusphere-2024-2539</article-id>
<title-group>
<article-title>A GPU-parallelization of the neXtSIM-DG dynamical core (v0.3.1)</article-title>
</title-group>
<contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Jendersie</surname>
<given-names>Robert</given-names>
<ext-link>https://orcid.org/0000-0001-8693-0222</ext-link>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Lessig</surname>
<given-names>Christian</given-names>
<ext-link>https://orcid.org/0000-0002-2740-6815</ext-link>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Richter</surname>
<given-names>Thomas</given-names>
<ext-link>https://orcid.org/0000-0003-0206-3606</ext-link>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
</contrib>
</contrib-group><aff id="aff1">
<label>1</label>
<addr-line>Institute for Simulation and Graphics, Otto-von-Guericke University, Magdeburg, Germany</addr-line>
</aff>
<aff id="aff2">
<label>2</label>
<addr-line>Institute of Analysis und Numerics, Otto-von-Guericke University, Magdeburg, Germany</addr-line>
</aff>
<aff id="aff3">
<label>3</label>
<addr-line>European Centre for Medium-Range Weather Forecasts, Bonn, Germany</addr-line>
</aff>
<pub-date pub-type="epub">
<day>25</day>
<month>09</month>
<year>2024</year>
</pub-date>
<volume>2024</volume>
<fpage>1</fpage>
<lpage>32</lpage>
<permissions>
<copyright-statement>Copyright: &#x000a9; 2024 Robert Jendersie et al.</copyright-statement>
<copyright-year>2024</copyright-year>
<license license-type="open-access">
<license-p>This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this licence, visit <ext-link ext-link-type="uri"  xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link></license-p>
</license>
</permissions>
<self-uri xlink:href="https://egusphere.copernicus.org/preprints/2024/egusphere-2024-2539/">This article is available from https://egusphere.copernicus.org/preprints/2024/egusphere-2024-2539/</self-uri>
<self-uri xlink:href="https://egusphere.copernicus.org/preprints/2024/egusphere-2024-2539/egusphere-2024-2539.pdf">The full text article is available as a PDF file from https://egusphere.copernicus.org/preprints/2024/egusphere-2024-2539/egusphere-2024-2539.pdf</self-uri>
<abstract>
<p>The cryosphere plays a crucial role in Earth&amp;rsquo;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.</p>
</abstract>
<counts><page-count count="32"/></counts>
</article-meta>
</front>
<body/>
<back>
</back>
</article>