
We’re happy to announce the release of HPX 2.0.0, the C++ Standard Library for Parallelism and Concurrency! HPX implements the facilities of the C++ standard for parallelism and concurrency and extends them to distributed applications, from a single node to large clusters, with a uniform, standards-conforming API.
HPX 2.0.0 is one of the largest releases in the project’s history. Since version 1.11.0, more than 90 contributors have authored more than 4,000 commits in 834 merged pull requests, and more than 75 of them made their first contribution to HPX during this release cycle. It is also the first major release of HPX as a project of the High Performance Software Foundation.
Highlights of HPX 2.0.0
A C++20 baseline and C++20 modules C++20 is now the minimum required standard, which allowed removing a large amount of compatibility code for older compilers. HPX can optionally be built and used as a set of native C++20 modules across its whole module hierarchy.
C++26 ahead of standardization
Using experimental compiler support, HPX adopts upcoming C++26 features early. Compile-time reflection lets applications serialize their types without hand-written serialization functions, and declare remote actions, components and clients without the macros previously needed to register them. HPX APIs have also started to carry C++26 contract annotations.
Senders and receivers based on stdexec
HPX’s own implementation of senders and receivers was replaced by stdexec, NVIDIA’s reference implementation of std::execution. The new P2079 parallel scheduler runs sender-based work on HPX’s thread pools, and the MPI and CUDA adaptors as well as the parallel algorithms integrate with it.
Networking and resilience
A new, optimized MPI parcelport, an optimized LCI parcelport and a new LCW parcelport broaden the choice of network backends. AGAS and the parcel layer were hardened substantially: localities that crash or become unreachable can be removed with force_disconnect, and the runtime handles their departure cleanly. The new supervision module builds on this to dispatch distributed work under crashes and partial failures.
Observability
The new hpx::tracing layer unifies the Tracy and Intel VTune backends behind one API, with instrumentation of the schedulers, work stealing, parcels and task lifecycles. The new hpx-top tool monitors the performance of running applications interactively.
Collectives and parallel algorithms
Hierarchical implementations of all_reduce, all_gather, scatter, all_to_all and scan scale collective operations to many localities. The parallel algorithms gained for_each_index, iota, find_last and the C++23 fold family, along with many conformance and correctness fixes.
Schedulers and task sizes
The work-stealing schedulers were reworked: a few tasks posted by a busy worker are now run within microseconds instead of milliseconds, the work-requesting schedulers steal work as designed, and the per-worker data no longer shares cache lines between workers. Functions can now carry a task size, and the new task_size_chunk_size executor parameters use it to decide how to split a parallel loop, which makes short loops many times faster.
Learn More
HPX 2.0.0 contains breaking changes, most notably the C++20 requirement, the switch to stdexec and the removal of tag_invoke-based customization. For the details of these and all other changes, see the release notes, and download the release from GitHub:
We thank everyone who contributed code, documentation, tests, bug reports and reviews to this release.