Skip to content

HPX Strategic Development Goals

Hartmut Kaiser edited this page Nov 12, 2026 · 1 revision

Last updated: 2026-11-12. See also: HPX Roadmap.

Purpose and scope

HPX aims to be the reference open-source C++ library for concurrency and parallelism: a conforming implementation of the C++ standard facilities, an early implementation of what is being standardized next, and an extension of those same APIs to distributed systems.

This document states the goals that guide development after the 2.0.0 release, with the 2.1.0 milestone as the near-term target. Each section names the goal, why it matters, and the concrete work that currently carries it. Three overarching goals come first; seven areas follow: standards, performance, distribution, portability, quality, observability, and community.

Overarching goals

Beyond classic HPC, HPX aims to become the runtime layer that other systems build on: for orchestrating agentic AI workloads, and as a unified control plane linking compiler, runtime and AI/ML decisions, while keeping the applications built on it safe and secure.

  1. A unified control plane across the hardware/software stack. Make HPX, together with compiler extensions that target it, the control plane that links three sources of information, so that scheduling, data placement, memory and communication decisions are coordinated across the full stack instead of made in isolation:
    • compiler-visible program intent (task costs, dependencies, data access and communication patterns known at compile time),
    • runtime telemetry (queue lengths, task sizes, performance counters, memory and network load, hardware topology),
    • AI/ML coordination that turns both into decisions on scheduling, load balancing, data placement, memory use and communication.
  2. Execution orchestration for agentic AI systems. Use HPX as the infrastructure that runs agentic AI workflows: many concurrent, dependent tasks (model calls, tool invocations, sub-agents), from long-lived agents to large numbers of short-lived agents that are spawned for one step and retired cheaply, expressed as futures, dataflow graphs and senders, scheduled across local cores and remote localities with the same API.
  3. Safety and security of applications built on HPX. HPX must ensure safety and security of applications that use it, from a single node to an untrusted network: memory- and thread-safe APIs checked by sanitizers and contracts, safe defaults, serialization and parcelports that reject malformed or unauthenticated input, optional encrypted communication between localities, a supply chain hardened per OpenSSF guidance, and a documented process for reporting and fixing vulnerabilities.

The area goals below serve these three: standard APIs make HPX a stable target, task sizes and scheduler policies provide the hooks for informed decisions, and the distributed layer lets both scale past one node.

Standards conformance

Goal: every HPX API that has a standard counterpart behaves exactly like it, and HPX tracks new proposals closely enough to give feedback to the committee.

  • C++20 baseline. C++20 is the minimum language level; newer features are used behind feature tests, never as hard requirements.
  • Parallel algorithms and ranges. Full, correct coverage of the standard algorithms with all execution policies, including sentinels of a different type and P3179 parallel range queries. Open correctness work in 2.1.0: ranges::search_n, set operation result iterators, make_heap with par, and segmented partition boundaries.
  • Senders and receivers (P2300). Make the sender/receiver model a first-class way to use HPX: sender-based execution policies for the legacy future algorithms, a P2300-style task_group, and P3552 coroutine task<T> with environments and allocators. HPX follows upstream stdexec rather than forking it.
  • C++ modules. HPX builds and is consumable as named modules with Clang and MSVC, with in-code workarounds kept narrow and version-guarded.
  • Contracts. Annotate public APIs, synchronization primitives and collectives with contracts, with a working HPX_WITH_CONTRACTS=OFF path.
  • Stable public API. Formalize what is public, which namespaces are stable, and how deprecations flow through releases (HEP 2 and the public API policy).

Performance and scheduling

Goal: HPX tasks are cheap enough that fine-grained parallelism pays off, and the scheduler makes good decisions without per-application hand tuning.

  • Task sizes drive scheduling. Tasks carry their expected run time (hpx::task_size), derived from the functions they run, not from guessed iteration counts. The parallel algorithms size their work this way, and actions and stack sizes get the same annotations.
  • Scheduler tuning by policy. Scheduling rules are expressed in a scheduling policy plus named settings and a tuner, so a new scheduler is a configuration, not a fork. Next step: the local-priority-tuned-fifo scheduler and idle-worker behaviour.
  • Low latency, no wasted cycles. Spinning is bounded by calibrated round counts rather than clock reads; idle workers wake quickly without burning cores.
  • Hardware-aware data layout. Avoid false sharing with padding sized to the destructive interference size, and respect NUMA placement hints in every scheduler.
  • Measured, not guessed. Changes are judged by A/B runs against a fixed baseline. Linux on the reference cluster is the deciding platform when results disagree. Design choices follow function and abstraction, not lucky compiler inlining.
  • No silent regressions. Performance tests run in CI with history graphs marked by release, so drift is visible and traced to a change.

Distributed computing

Goal: local and remote operations share one syntax and one semantics, so scaling from a node to a cluster changes the deployment, not the code.

  • Unified local and remote APIs. Actions, components and futures work the same whether the target is local or remote; action annotations (task size, priority, stack use) apply to component actions too, including in reflection builds.
  • Segmented algorithms that scale. Distributed containers and segmented algorithms are correct at partition boundaries and with differing locality counts, and finish distributed (for example, a distributed final merge for segmented sort).
  • Efficient communication. Parcelports for MPI, LCI, LCW and GASNet; collectives that do not block on later generations; zero-copy serialization of action arguments as the long-standing target.
  • Interoperation with MPI. HPX coexists with application-level MPI, including multithreaded and funneled modes, without freezing either side.

Portability and platforms

Goal: HPX builds and runs well on every major platform and is one command away in the common package managers.

Platform or target Role Current focus
Linux (GCC, Clang) Primary; decides performance trade-offs Clang modules builds, sanitizer and debug-mode cleanliness
Windows (MSVC) Fully supported Modules builds, version-guarded compiler workarounds, idle backoff limits of the platform
macOS (Apple Clang) Supported Keep the test suite green
GPUs (CUDA, SYCL) Supported back ends nvcc and Clang CUDA on Linux and Windows, build-only CI on Windows
Package managers Distribution vcpkg, EasyBuild and Spack ports tracking each release

Portability work stays out of the hot path: platform differences live in narrow, guarded code, not in the scheduler or algorithm logic.

Quality and infrastructure

Goal: master is always releasable, and a red CI result always means a real problem.

  • Correctness under concurrency. Fix data races, deadlocks and use-after-free bugs in synchronization primitives, futures, coroutines and run loops, and add a regression test for each.
  • Fast, reliable CI. Sharded build-and-test workflows cover the main platform and configuration matrix within a reasonable wall time; flaky tests are fixed or quarantined, not retried away.
  • Modular build. Each module stands on its own; consumers include only the generated hpx/modules/<name>.hpp umbrella headers.
  • Licensing and supply chain. REUSE-compliant licensing metadata, hardened GitHub workflows, and OpenSSF best practices.
  • Consistent code. clang-format, cmake-format, Boost-style naming and an 80-column soft limit, checked in CI.

Observability and tooling

Goal: users can see what the runtime is doing with tools they already know, at negligible cost when tracing is off.

  • Tracy as the tracing back end. HPX is moving its task and runtime instrumentation to Tracy, with optional call stacks to keep overhead controllable.
  • Vendor tools where useful. Intel ITT annotations (including parcel events) and LIKWID markers for hardware-level analysis.
  • Performance counters. Keep the counter framework as the in-process source for runtime adaptivity and introspection.

Community and process

Goal: a welcoming, meritocratic project where contributions land quickly and releases are predictable.

  • Reviewable contributions. Small, focused PRs on topic branches, with tests, DCO sign-off and a milestone; formatting kept separate from functional changes.
  • Regular releases. Feature releases on a predictable cadence (2.1.0 is the current target) with patch releases on release branches and written release notes.
  • Grow contributors. Mentor new contributors through good first issues, GSoC and clear triage, and keep governance open under the High-Performance Software Foundation.
  • Documentation and teaching. Keep the manual, API reference and examples current with each release.

Clone this wiki locally