<?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>
<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-2026-7568</article-id>
<title-group>
<article-title>Porting WRF v4.8.0 to GPUs with OpenACC: strategy, verification, and lessons</article-title>
</title-group>
<contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Zhao</surname>
<given-names>Fanghe</given-names>
<ext-link>https://orcid.org/0009-0000-1317-1368</ext-link>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Rahimi</surname>
<given-names>Stefan</given-names>
<ext-link>https://orcid.org/0000-0003-3188-4462</ext-link>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Bukovsky</surname>
<given-names>Melissa</given-names>
<ext-link>https://orcid.org/0000-0001-6415-965X</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>Huang</surname>
<given-names>Lei</given-names>
</name>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>He</surname>
<given-names>Cenlin</given-names>
<ext-link>https://orcid.org/0000-0002-7367-2815</ext-link>
</name>
<xref ref-type="aff" rid="aff4">
<sup>4</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Lin</surname>
<given-names>Tzu-Shun</given-names>
<ext-link>https://orcid.org/0000-0002-5741-8585</ext-link>
</name>
<xref ref-type="aff" rid="aff4">
<sup>4</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Dudhia</surname>
<given-names>Jimy</given-names>
</name>
<xref ref-type="aff" rid="aff5">
<sup>5</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Liu</surname>
<given-names>Changhai</given-names>
</name>
<xref ref-type="aff" rid="aff4">
<sup>4</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Singh</surname>
<given-names>Karandeep</given-names>
</name>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Thackeray</surname>
<given-names>Chad</given-names>
</name>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Norris</surname>
<given-names>Jesse</given-names>
<ext-link>https://orcid.org/0000-0003-1427-2851</ext-link>
</name>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Liu</surname>
<given-names>Weichen</given-names>
<ext-link>https://orcid.org/0000-0001-8990-1216</ext-link>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Geerts</surname>
<given-names>Bart</given-names>
<ext-link>https://orcid.org/0000-0002-1508-6121</ext-link>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Rasmussen</surname>
<given-names>Kristen L.</given-names>
</name>
<xref ref-type="aff" rid="aff6">
<sup>6</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Hall</surname>
<given-names>Alex</given-names>
</name>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
</contrib>
</contrib-group><aff id="aff1">
<label>1</label>
<addr-line>Department of Atmospheric Science, University of Wyoming, Laramie, WY, USA</addr-line>
</aff>
<aff id="aff2">
<label>2</label>
<addr-line>Haub School of Environment and Natural Resources, University of Wyoming, Laramie, WY, USA</addr-line>
</aff>
<aff id="aff3">
<label>3</label>
<addr-line>Atmospheric and Oceanic Sciences, University of California, Los Angeles, Los Angeles, CA, US</addr-line>
</aff>
<aff id="aff4">
<label>4</label>
<addr-line>Research Applications Laboratory, NSF National Center for Atmospheric Research (NSF NCAR), Boulder, CO, USA</addr-line>
</aff>
<aff id="aff5">
<label>5</label>
<addr-line>Mesoscale and Microscale Meteorology Laboratory, NSF National Center for Atmospheric Research (NSF NCAR), Boulder, CO, USA</addr-line>
</aff>
<aff id="aff6">
<label>6</label>
<addr-line>Department of Atmospheric Science, Colorado State University, Fort Collins, CO, USA</addr-line>
</aff>
<pub-date pub-type="epub">
<day>02</day>
<month>12</month>
<year>2026</year>
</pub-date>
<volume>2026</volume>
<fpage>1</fpage>
<lpage>39</lpage>
<permissions>
<copyright-statement>Copyright: &#x000a9; 2026 Fanghe Zhao et al.</copyright-statement>
<copyright-year>2026</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/2026/egusphere-2026-7568/">This article is available from https://egusphere.copernicus.org/preprints/2026/egusphere-2026-7568/</self-uri>
<self-uri xlink:href="https://egusphere.copernicus.org/preprints/2026/egusphere-2026-7568/egusphere-2026-7568.pdf">The full text article is available as a PDF file from https://egusphere.copernicus.org/preprints/2026/egusphere-2026-7568/egusphere-2026-7568.pdf</self-uri>
<abstract>
<p>Kilometer-scale simulations with the Weather Research and Forecasting (WRF) model run on CPU clusters are computationally intensive. GPUs offer higher peak arithmetic throughput per node. Earlier work on GPU-accelerated WRF either ported single physics schemes, built a proprietary code from an older WRF version, or re-implemented the model in another language. This leaves the question of how the community code with a complete real-case physics suite can run on GPUs and produce results physically consistent with CPU-based WRF. Here we port WRF v4.8.0 to NVIDIA GPUs with OpenACC directives and CUDA managed memory. The port covers the dynamical core, halo exchange, five microphysics schemes, four cumulus schemes, RRTMG radiation, three boundary layer schemes, two surface layer schemes, three land-surface models including Noah-MP version 5.0, the CLM lake model, spectral and analysis nudging, the HAILCAST hail diagnostic, and the WRF-Solar, WRF-Fire and WRF-Hydro components. Every change passed three gates: a per-call comparison with the previous code, byte identity of repeated runs, and a 7-day run compared with CPU-based WRF. On NSF NCAR Derecho, one node with four A100 GPUs ran 3.4 to 3.5 times faster than one 128-core CPU node at 5 km grid spacing and 6.1 times faster in a 7-day regional simulation at 9 km. Two GPU nodes ran two times faster than eight CPU nodes at 1 km, and in regional applications at 45 and 6 km one GPU node did the work of 3.8 and 9.0 CPU nodes, respectively. Across all cases, one GPU node replaced 3 to 9 CPU nodes. Differences from CPU WRF grew from round-off without systematic drift, and over a 30-day 45 km simulation daily-mean differences were significant at the 5 % level for 0 to 6.5 % of grid points, close to the rate expected by chance. The gates, the porting patterns, and the results we report give a route for routine GPU porting of numerical weather prediction models.</p>
</abstract>
<counts><page-count count="39"/></counts>
</article-meta>
</front>
<body/>
<back>
</back>
</article>