Metraipolis › archive › dc_cbbcf8efa559

Migrating a Legacy Scientific Application with an AI Coding Agent: NICAM from Fortran to Kokkos — arXiv:2610.41313

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.41313
License (as archived)
CC0-1.0
Archived
2026-11-03T07:36:23.354Z
SHA-256 of the archived text
ac031a36b65ca4845f262e9ecb7f137c66ba5e22f6bea05b680643e218858b8c
Stable URL of this page
https://metraipolis.com/documento/dc_cbbcf8efa559

How to cite

Migrating a Legacy Scientific Application with an AI Coding Agent: NICAM from Fortran to Kokkos — arXiv:2610.41313 — arXiv (en), https://arxiv.org/abs/2610.41313 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_cbbcf8efa559 (Metraipolis archive dc_cbbcf8efa559, sha256 ac031a36b65ca4845f262e9ecb7f137c66ba5e22f6bea05b680643e218858b8c)
BibTeX
@misc{dccbbcf8efa559,
  title = {Migrating a Legacy Scientific Application with an AI Coding Agent: NICAM from Fortran to Kokkos — arXiv:2610.41313},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.41313},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_cbbcf8efa559; sha256 ac031a36b65ca4845f262e9ecb7f137c66ba5e22f6bea05b680643e218858b8c},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.41313. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Migrating from Fortran to C++/Kokkos broadens access to hardware accelerators through backends such as CUDA and HIP while offering greater flexibility in software design. However, legacy Fortran applications often have large codebases, making manual porting time-consuming and costly. Recent advances in large language models (LLMs) and AI coding agents have made large-scale code migration increasingly feasible. In this study, we ported NICAM (Nonhydrostatic ICosahedral Atmospheric Model), a legacy Fortran climate model accelerated with OpenACC, to C++/Kokkos with the assistance of Claude Code. The agent translated the code directly from Fortran to C++/Kokkos under human review. Approximately 140,000 lines of Fortran were analyzed and ported into 35,000 lines of C++/Kokkos, covering the dynamical core and seven physics packages. A 100-member ensemble comparison with the original Fortran model showed that the port is statistically consistent with the original. Performance was evaluated on Miyabi-G, an NVIDIA GH200 cluster, and Sirius, an AMD MI300A cluster. Compared with the Fortran/OpenACC baseline on GH200, the port achieved application speedups of $1.71\times$ on GH200 and $1.54\times$ on MI300A. The CUDA build achieved a GPU kernel-time speedup of $1.38\times$ on GH200. After normalization by peak memory bandwidth, the HIP build on MI300A achieved $0.96\times$ the kernel performance of the Fortran/OpenACC baseline.

Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.DC, nuovi lavori del giorno).
Categorie arXiv: Distributed, Parallel, and Cluster Computing (cs.DC).
Pagina del lavoro: https://arxiv.org/abs/2610.41313 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-11-03T07:30:02.637Z dalla pagina https://arxiv.org/list/cs.DC/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).