arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.12274cs.DC
收藏

在 MPICH 中设计和原型化 MPI 的扩展

Designing and Prototyping Extensions to MPI in MPICH

Hui Zhou, Ken Raffenetti, Yanfei Guo, Thomas Gillis, Robert Latham, Rajeev Thakur

AI总结:

针对MPI标准对异构架构混合编程支持不足的问题,在MPICH中实现六项扩展,增强MPI与OpenMP等运行时的互操作性及线程与GPU感知能力,提升HPC应用性能。

摘要:

随着 HPC 系统架构及其上运行的应用程序不断演进,MPI 标准本身也必须演进。当前和未来 HPC 系统向配备多个 CPU 核心和多个 GPU 加速器的强大节点发展的趋势,使得对混合编程的高效支持成为应用程序实现高性能的关键。然而,MPI 标准中对混合编程的支持未能跟上近期的趋势。MPI 的 MPICH 实现提供了一个平台,用于实现和试验新的提案和扩展,以填补这一空白,并在 MPI Forum 考虑将它们标准化之前获得宝贵的经验和反馈。在这项工作中,我们详细介绍了在 MPICH 中实现的六个扩展,以增加 MPI 与其他运行时的互操作性,特别关注异构架构。首先,对 MPI 广义请求的扩展允许应用程序将异步任务集成到 MPI 的进度引擎中。其次,数据类型的 iovec 扩展允许应用程序将 MPI 数据类型用作超越 MPI 通信的通用数据布局 API。第三,一个新的 MPI 对象 MPIX stream 可被应用程序用来识别超越 MPI 进程的执行上下文,包括线程和 GPU 流。可以创建 MPIX stream 通信器,使现有的 MPI 函数具备线程感知和 GPU 感知能力,从而为应用程序提供实现更高性能的显式途径。第四,MPIX Streams 被扩展以支持入队语义,用于将 MPI 通信卸载到 GPU 流上下文中。第五,线程通信器允许 MPI 通信器与单个线程一起构建,从而在 MPI 和 OpenMP 等节点内运行时之间提供新级别的互操作性。最后,我们提出了一个调用 MPI 进度的扩展,允许用户以细粒度控制生成进度线程。

英文摘要:

As HPC system architectures and the applications running on them continue to evolve, the MPI standard itself must evolve. The trend in current and future HPC systems toward powerful nodes with multiple CPU cores and multiple GPU accelerators makes efficient support for hybrid programming critical for applications to achieve high performance. However, the support for hybrid programming in the MPI standard has not kept up with recent trends. The MPICH implementation of MPI provides a platform for implementing and experimenting with new proposals and extensions to fill this gap and to gain valuable experience and feedback before the MPI Forum can consider them for standardization. In this work, we detail six extensions implemented in MPICH to increase MPI interoperability with other runtimes, with a specific focus on heterogeneous architectures. First, the extension to MPI generalized requests lets applications integrate asynchronous tasks into MPI's progress engine. Second, the iovec extension to datatypes lets applications use MPI datatypes as a general-purpose data layout API beyond just MPI communications. Third, a new MPI object, MPIX stream, can be used by applications to identify execution contexts beyond MPI processes, including threads and GPU streams. MPIX stream communicators can be created to make existing MPI functions thread-aware and GPU-aware, thus providing applications with explicit ways to achieve higher performance. Fourth, MPIX Streams are extended to support the enqueue semantics for offloading MPI communications onto a GPU stream context. Fifth, thread communicators allow MPI communicators to be constructed with individual threads, thus providing a new level of interoperability between MPI and on-node runtimes such as OpenMP. Lastly, we present an extension to invoke MPI progress, which lets users spawn progress threads with fine-grained control.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑