# 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.