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

利用邻域集合通信与局部性感知并行优化不规则通信

Optimizing Irregular Communication with Neighborhood Collectives and Locality-Aware Parallelism

Gerald Collom, Rui Peng Li, Amanda Bienz

AI总结:

本文基于 MPI 4 持久化邻域集合通信 API,提出局部性感知聚合等不规则通信优化方法,并在 BoomerAMG 的稀疏矩阵-向量乘法中实现最高 1.32 倍加速。

摘要:

不规则通信通常会限制并行应用的性能和可扩展性。通常情况下,应用程序使用点对点通信单独实现不规则消息,并且任何优化都会直接添加到应用程序中。因此,这些优化缺乏可移植性。在 MPI 内部优化点对点消息并不容易,因为单消息接口不提供关于待执行的全部通信集合的信息。然而,MPI 4 标准中发布的持久化邻域集合通信 API 为在 MPI 库内部对不规则通信进行可移植优化提供了接口。本文提出了在邻域集合通信中优化不规则通信的方法,分析了在 Hypre BoomerAMG 等现有代码库中用邻域集合通信替代点对点通信的影响,并最终展示了通过使用我们优化后的邻域集合通信,在 BoomerAMG 求解过程中的稀疏矩阵-向量乘法上获得最高 1.32 倍的加速。作者分析了邻域集合通信的多种实现,包括简单封装标准点对点通信的标准实现,以及多种局部性感知聚合实现。所有优化都可在开源代码库 MPI Advance 中获得,该代码库构建于 MPI 之上,使得无论系统安装的是何种 MPI,都可以将优化添加到现有代码库中。

英文摘要:

Irregular communication often limits both the performance and scalability of parallel applications. Typically, applications individually implement irregular messages using point-to-point communications, and any optimizations are added directly into the application. As a result, these optimizations lack portability. There is no easy way to optimize point-to-point messages within MPI, as the interface for single messages provides no information on the collection of all communication to be performed. However, the persistent neighbor collective API, released in the MPI 4 standard, provides an interface for portable optimizations of irregular communication within MPI libraries. This paper presents methods for optimizing irregular communication within neighborhood collectives, analyzes the impact of replacing point-to-point communication in existing codebases such as Hypre BoomerAMG with neighborhood collectives, and finally shows an up to 1.32x speedup on sparse matrix-vector multiplication within a BoomerAMG solve through the use of our optimized neighbor collectives. The authors analyze multiple implementations of neighborhood collectives, including a standard implementation, which simply wraps standard point-to-point communication, as well as multiple implementations of locality-aware aggregation. All optimizations are available in an open-source codebase, MPI Advance, which sits on top of MPI, allowing for optimizations to be added into existing codebases regardless of the system MPI install.

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

↑