[论文解读] HPX -- An open source C++ Standard Library for Parallelism and Concurrency
HPX 是一个开源的、符合 C++ 标准的 AMP 运行时,支持异步任务并行和全局地址空间,旨在在异构硬件上扩展 HPC 应用。它展示了与 GPU、STORM/STAR 应用以及开源社区开发的集成。
To achieve scalability with today's heterogeneous HPC resources, we need a dramatic shift in our thinking; MPI+X is not enough. Asynchronous Many Task (AMT) runtime systems break down the global barriers imposed by the Bulk Synchronous Programming model. HPX is an open-source, C++ Standards compliant AMT runtime system that is developed by a diverse international community of collaborators called The Ste||ar Group. HPX provides features which allow application developers to naturally use key design patterns, such as overlapping communication and computation, decentralizing of control flow, oversubscribing execution resources and sending work to data instead of data to work. The Ste||ar Group comprises physicists, engineers, and computer scientists; men and women from many different institutions and affiliations, and over a dozen different countries. We are committed to advancing the development of scalable parallel applications by providing a platform for collaborating and exchanging ideas. In this paper, we give a detailed description of the features HPX provides and how they help achieve scalability and programmability, a list of applications of HPX including two large NSF funded collaborations (STORM, for storm surge forecasting; and STAR (OctoTiger) an astro-physics project which runs at 96.8% parallel efficiency on 643,280 cores), and we end with a description of how HPX and the Ste||ar Group fit into the open source community.
研究动机与目标
- 推动需要从 MPI+X 的范式转变到异步多任务运行时系统,以充分利用节点级与异构 HPC 资源。
提出的方法
- 描述 HPX 运行时组件及其作用(线程管理器、AGAS、包/主动消息、性能计数器)。
- 解释 HPX 如何通过 futures、channels、数据流和基于 CPS 的编程实现等待无阻的异步执行。
- 展示通过 HPX.Compute 和 HPXCL 进行异构性集成,以支持 CUDA 与 SYCL/设备编程。
实验结果
研究问题
- RQ1相比传统的 BSP 模型,HPX 的 AMT 模型与 AGAS 和主动消息在异构 HPC 系统上如何提升可扩展性?
主要发现
- HPX 提供符合 C++ 标准的 API,含 futures、channels 与异步原语。
- HPX 包含一个主动全局地址空间(AGAS),实现对象迁移与定位透明性。
- HPX 使用单边传递(Active Messaging)模型进行类似 RPC 的远程调用。
- HPX 包含一个具有多种调度策略和性能计数器的任务调度器,以实现自适应。
- 像 LibGeoDecomp、风暴潮预报(STORM)和天体物理(OctoTiger)等应用在大规模核心上表现出高并行效率和可扩展性(例如在 643,280 核心上达到 96.8% 的并行效率)。
- HPX 在异构硬件(如 Xeon Phi Knights Corner、Cori Knights Landing)上表现出强劲性能,在某些情景中甚至能超越 MPI。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。