arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.13807cs.DC
收藏

面向所有场景的MPI进度机制

MPI Progress For All

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

AI总结:

针对MPI通信进度机制定义不明确、阻碍HPC应用性能提升与编程范式集成的问题,本文分析MPI消息实现细节,提出可让用户显式构建管理高效进度引擎的MPI扩展,经验证其复杂度更低、有效性更高。

摘要:

消息传递接口(Message Passing Interface,MPI)中的通信推进机制定义尚不明确,但它对应用性能至关重要,尤其是在实现计算与通信的有效重叠方面。MPI进度机制的不透明性给现代高性能计算(HPC)实践中MPI的发展带来了重大挑战:首先,定义不清晰阻碍了面向应用的计算-通信重叠优化明确指南的制定;其次,它导致MPI无法与基于任务的运行时、事件驱动编程等当代编程范式无缝集成;第三,它限制了从用户空间扩展MPI功能的可能性。本文通过分析MPI消息传递的实现细节,探究了MPI进度的作用,随后归纳了异步通信模式,并明确了影响应用性能的关键因素。基于上述分析,我们提出了一组MPI扩展,旨在让用户能够显式构建并管理高效的进度引擎。我们提供了示例代码,演示了所提API在提升性能、适配基于任务或事件驱动的编程风格,以及构建性能可媲美原生实现的集合通信算法方面的应用。我们将该方法与该领域的已有工作进行了对比,凸显了其复杂度更低、有效性更高的优势。

英文摘要:

The progression of communication in the Message Passing Interface (MPI) is not well defined, yet it is critical for application performance, particularly in achieving effective computation and communication overlap. The opaque nature of MPI progress poses significant challenges in advancing MPI within modern high-performance computing (HPC) practices. Firstly, the lack of clarity hinders the development of explicit guidelines for enhancing computation and communication overlap in applications. Secondly, it prevents MPI from seamlessly integrating with contemporary programming paradigms, such as task-based runtimes and event-driven programming. Thirdly, it limits the extension of MPI functionalities from the user space. In this paper, we examine the role of MPI progress by analyzing the implementation details of MPI messaging. We then generalize the asynchronous communication pattern and identify key factors influencing application performance. Based on this analysis, we propose a set of MPI extensions designed to enable users to explicitly construct and manage an efficient progress engine. We provide example codes to demonstrate the use of these proposed APIs in achieving improved performance, adapting MPI to task-based or event-driven programming styles, and constructing collective algorithms that rival the performance of native implementations. Our approach is compared to previous efforts in the field, highlighting its reduced complexity and increased effectiveness.

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

↑