An extension of C++ with memory-centric specifications for HPC to reduce memory footprints and streamline MPI development

C++ leans towards a memory-inefficient storage of structs:The compiler inserts padding bits, while it is not able to exploit knowledge about the range of integers, enums or bitsets.Furthermore, the language provides no support for arbitrary floating-point precisions.We propose a language extension based upon attributes through whichdevelopers can guide the compiler what memory arrangements would be beneficial:Can multiple booleans or integers with limited range be squeezed into one bit field, do floating-point numbers hold fewer significant bits than in the IEEE standard, and is a programmer willing to trade attribute ordering guarantees for a more compact object representation?The extension offers the opportunity tofall back to normal alignment and native C++ floating point representations via plain C++ assignments,no dependencies upon external libraries are introduced, and the resulting coderemains (syntactically) standard C++.As MPI remains the de-facto standard for distributed memory calculations in C++,we furthermore propose additional attributes which streamline the MPI datatype modelling in combination with our memory optimisation extensions.Our work implements the language annotations within LLVM and demonstrates their potential impact through smoothed particle hydrodynamics benchmarks.They uncover the potential gains in terms of performance and development productivity.

Authors

Publication Details

Journal
Durham Research Online (Durham University)
Published
2026-02-09
Primary Topic
Parallel Computing and Optimization Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An extension of C++ with memory-centric specifications for HPC to reduce memory footprints and streamline MPI development

Tobias Weinzierl, Pawel K. Radtke, Christian Barrera-Hinojosa, Mladen Ivkovic
Durham Research Online (Durham University)
Parallel Computing and Optimization Techniques
article

An extension of C++ with memory-centric specifications for HPC to reduce memory footprints and streamline MPI development

Tobias Weinzierl, Pawel K. Radtke, Christian Barrera-Hinojosa, Mladen Ivkovic
article en

Abstract

C++ leans towards a memory-inefficient storage of structs:The compiler inserts padding bits, while it is not able to exploit knowledge about the range of integers, enums or bitsets.Furthermore, the language provides no support for arbitrary floating-point precisions.We propose a language extension based upon attributes through whichdevelopers can guide the compiler what memory arrangements would be beneficial:Can multiple booleans or integers with limited range be squeezed into one bit field, do floating-point numbers hold fewer significant bits than in the IEEE standard, and is a programmer willing to trade attribute ordering guarantees for a more compact object representation?The extension offers the opportunity tofall back to normal alignment and native C++ floating point representations via plain C++ assignments,no dependencies upon external libraries are introduced, and the resulting coderemains (syntactically) standard C++.As MPI remains the de-facto standard for distributed memory calculations in C++,we furthermore propose additional attributes which streamline the MPI datatype modelling in combination with our memory optimisation extensions.Our work implements the language annotations within LLVM and demonstrates their potential impact through smoothed particle hydrodynamics benchmarks.They uncover the potential gains in terms of performance and development productivity.

Durham Research Online (Durham University)
Decent work and economic growth
Openalex Percentile: Top 72%
Parallel Computing and Optimization Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.