# Kokkos

Kokkos is a performance portability ecosystem with core programming components, kernels, tools, tutorials, documentation, and API references.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

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

DevFeed: [Migrating a Legacy Scientific Application with an AI Coding Agent: NICAM from Fortran to Kokkos](<https://devfeed.tech/articles/migrating-a-legacy-scientific-application-with-an-ai-coding-agent-nicam-from-fortran-to-kokkos-111753.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.41313>)

Author: Xuanzhengbo Ren, Takashi Shimokawabe, Hisashi Yashiro

Published: 2026-11-02T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [Kokkos](<https://devfeed.tech/topics/kokkos.md>), [Fortran](<https://devfeed.tech/topics/fortran.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [legacy systems](<https://devfeed.tech/topics/legacy-systems.md>), [CUDA](<https://devfeed.tech/topics/cuda.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-coding](<https://devfeed.tech/tags/ai-coding.md>), [ai-coding-agent](<https://devfeed.tech/tags/ai-coding-agent.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [comparison](<https://devfeed.tech/tags/comparison.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cuda](<https://devfeed.tech/tags/cuda.md>), [fortran](<https://devfeed.tech/tags/fortran.md>), [hip](<https://devfeed.tech/tags/hip.md>), [human-review](<https://devfeed.tech/tags/human-review.md>), [legacy](<https://devfeed.tech/tags/legacy.md>), [migration](<https://devfeed.tech/tags/migration.md>), [performance](<https://devfeed.tech/tags/performance.md>)

### AI overview

With Claude Code assistance and human review, the researchers ported NICAM's dynamical core and seven physics packages from about 140,000 lines of Fortran/OpenACC to 35,000 lines of C++/Kokkos. A 100-member ensemble comparison found the port statistically consistent with the original. Against the Fortran/OpenACC baseline on GH200, application speedups were 1.71x on GH200 and 1.54x on MI300A. The CUDA build's GPU kernel time was 1.38x faster on GH200; on MI300A, the HIP build reached 0.96x baseline kernel performance after peak-memory-bandwidth normalization. The reported results show application-level gains across both tested clusters, while normalized HIP kernel performance was near, but below, baseline.

### Source excerpt

arXiv:2610.41313v1 Announce Type: new Abstract: 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.

## From Legacy Fortran to Portable Kokkos: An Autonomous Agentic AI Workflow

DevFeed: [From Legacy Fortran to Portable Kokkos: An Autonomous Agentic AI Workflow](<https://devfeed.tech/articles/from-legacy-fortran-to-portable-kokkos-an-autonomous-agentic-ai-workflow-102918.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2509.12443>)

Author: Sparsh Gupta, Kamalavasan Kamalakkannan, Maxim Moraru, Galen Shipman, Patrick Diehl

Published: 2026-10-28T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [agentic workflows](<https://devfeed.tech/topics/agentic-workflows.md>), [Fortran](<https://devfeed.tech/topics/fortran.md>), [Kokkos](<https://devfeed.tech/topics/kokkos.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [Agentic AI](<https://devfeed.tech/topics/what-is-agentic-ai.md>), [Multi Agent Systems](<https://devfeed.tech/topics/multi-agent-systems.md>), [High-Performance Computing](<https://devfeed.tech/topics/high-performance-computing.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Supercomputing](<https://devfeed.tech/topics/supercomputing.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>)

Tags: [abstraction](<https://devfeed.tech/tags/abstraction.md>), [accelerated](<https://devfeed.tech/tags/accelerated.md>), [accelerators](<https://devfeed.tech/tags/accelerators.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [agentic-systems](<https://devfeed.tech/tags/agentic-systems.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-workflow](<https://devfeed.tech/tags/ai-workflow.md>), [applications](<https://devfeed.tech/tags/applications.md>), [architectures](<https://devfeed.tech/tags/architectures.md>), [autonomous](<https://devfeed.tech/tags/autonomous.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [code](<https://devfeed.tech/tags/code.md>), [code-generation](<https://devfeed.tech/tags/code-generation.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [fortran](<https://devfeed.tech/tags/fortran.md>), [legacy](<https://devfeed.tech/tags/legacy.md>), [portable](<https://devfeed.tech/tags/portable.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

### AI overview

The paper reports an agentic workflow that uses specialized LLM agents to translate Fortran kernels into Kokkos C++, then validate, compile, run, test, debug, and optimize them for heterogeneous hardware. Across benchmark kernels, paid OpenAI models GPT-5 and o4-mini-high reportedly produced optimized codes that outperformed Fortran baselines at a cost of a few U.S. dollars per workflow run. Open-source Llama4-Maverick often failed to produce functional code. The evidence describes benchmark results and feasibility, not performance across all scientific applications.

### Source excerpt

arXiv:2509.12443v4 Announce Type: replace-cross Abstract: Scientific applications continue to rely on legacy Fortran codebases originally developed for homogeneous, CPU-based systems. As High-Performance Computing (HPC) shifts toward heterogeneous GPU-accelerated architectures, many accelerators lack native Fortran bindings, creating an urgent need to modernize legacy codes for portability. Frameworks like Kokkos provide performance portability and a single-source C++ abstraction, but manual Fortran-to-Kokkos porting demands significant expertise and time. Large language models (LLMs) have shown promise in source-to-source code generation, yet their use in fully autonomous workflows for translating and optimizing parallel code remains largely unexplored, especially for performance portability across diverse hardware. This paper presents an agentic AI workflow where specialized LLM "agents" collaborate to translate, validate, compile, run, test, debug, and optimize Fortran kernels into portable Kokkos C++ programs. Results show the pipeline modernizes a range of benchmark kernels, producing performance-portable Kokkos codes across hardware partitions. Paid OpenAI models such as GPT-5 and o4-mini-high executed the workflow for only a few U.S. dollars, generating optimized codes that surpassed Fortran baselines, whereas open-source models like Llama4-Maverick often failed to yield functional codes. This work demonstrates the feasibility of agentic AI for Fortran-to-Kokkos transformation and offers a pathway for autonomously modernizing legacy scientific applications to run portably and efficiently on diverse supercomputers. It further highlights the potential of LLM-driven agentic systems to perform structured, domain-specific reasoning tasks in scientific and systems-oriented applications.

## Concepts in Practice: C++ MPI Bindings for the HPC Ecosystem - From a Standardizable Core to a Composable Interface

DevFeed: [Concepts in Practice: C++ MPI Bindings for the HPC Ecosystem - From a Standardizable Core to a Composable Interface](<https://devfeed.tech/articles/concepts-in-practice-c-mpi-bindings-for-the-hpc-ecosystem-from-a-standardizable-core-to-a-composable-interface-95147.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2606.09102>)

Author: Tim Niklas Uhl, Matthias Schimek, Daniel Brommer

Published: 2026-10-22T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [High-Performance Computing](<https://devfeed.tech/topics/high-performance-computing.md>), [Kokkos](<https://devfeed.tech/topics/kokkos.md>), [adapter pattern](<https://devfeed.tech/topics/adapter-pattern.md>), [stl](<https://devfeed.tech/topics/stl.md>)

Tags: [adapter](<https://devfeed.tech/tags/adapter.md>), [adapters](<https://devfeed.tech/tags/adapters.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [c-plus-plus-20](<https://devfeed.tech/tags/c-plus-plus-20.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [hpc](<https://devfeed.tech/tags/hpc.md>), [interface](<https://devfeed.tech/tags/interface.md>), [memory-safety](<https://devfeed.tech/tags/memory-safety.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [performance](<https://devfeed.tech/tags/performance.md>), [stl-containers](<https://devfeed.tech/tags/stl-containers.md>)

### AI overview

The paper presents a layered design for modern C++ MPI bindings: a low-level core built on refined C++20 concepts, automatic mappings for standard C++ constructs, customization points for third-party types, and concept-based MPI procedure wrappers. The core works directly with STL containers and is designed to be extensible and suitable for standardization. On top of it, KaMPIng-v2 adds memory-safe, composable pipe-based syntax inspired by C++ ranges. Lightweight adapters let Kokkos views, Thrust device vectors, and SYCL buffers be passed directly to MPI, with adapter logic kept self-contained. The authors report a functional open-source reference implementation; the excerpt gives no performance measurements.

### Source excerpt

arXiv:2606.09102v2 Announce Type: replace Abstract: The official C++ MPI bindings were removed from the standard in 2008, leaving a gap that numerous third-party libraries have attempted to fill. However, existing wrappers typically cover only a limited subset of MPI or target specific use cases, falling short of a general-purpose solution. A recent conceptual paper proposed general design principles for modern C++ bindings based on C++20 concepts, without committing to a concrete interface. We present the first concrete realization of these principles in a layered architecture. At the foundation, we define a core layer: refined C++20 concepts formalizing the MPI standard's notion of data buffers, automatic mapping of standard C++ constructs, non-intrusive customization points for third-party types, and concept-based wrappers for MPI procedures. The result is a low-level native C++ MPI interface that works directly with STL containers, is highly extensible, and lends itself to standardization. Built on this core, we present KaMPIng-v2 -- a C++ MPI library offering the convenience and memory-safety of KaMPIng with composable, pipe-based syntax inspired by C++ ranges for efficient, boilerplate-free MPI programming. Finally, we demonstrate the core layer's broad applicability by designing lightweight adapters for GPU and performance-portability libraries, making the HPC ecosystem a first-class citizen in MPI. Kokkos views, Thrust device vectors, and SYCL buffers can be passed directly to MPI procedures, with adapter logic remaining self-contained. All contributions are backed by a fully functional open-source reference implementation, demonstrating the practical viability of the proposed design.