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.
在fork-join并行中,顺序程序被分成由有向依赖边链接的任务的有向非循环图,并且任务可能以与其依赖性一致的顺序并行执行。扩展fork-join并行性的一种流行而有效的方法是允许线程创建future。线程创建一个future来保存计算的结果,这些结果可能是并行执行的,也可能不是。当某个线程触及该future时,将返回该结果,必要时将阻塞该结果,直到结果就绪。最近的研究表明,虽然期货当然可以以结构化的方式增强并行性,但它们可能对缓存局部性产生有害影响。在最坏的情况下,未来可能导致$Ω(P T_\infty + t T_\infty)$偏差,这意味着$Ω(C P T_\infty + C t T_\infty)$额外的高速缓存未命中,其中$C$是高速缓存行的数量,$P$是处理器的数量,$t$是触摸的数量,$T_\infty$是\emph{computation span}。由于高速缓存局部性对现代多核上的软件性能有很大影响,因此这个结果令人不安。然而,在本文中,我们表明,如果期货是在一个简单的,有纪律的方式使用,那么情况要好得多:如果每个未来只接触一次,无论是线程创建它,或由一个线程的未来已经从线程创建它,然后并行执行工作窃取可以招致最多$O(C P T^2_\infty)$额外的缓存未命中,一个实质性的改善。期货的这种结构化使用是许多(但不是所有)并行应用程序的特征。
Pulse: Training Acceleration for Large Diffusion Models with Automatic Pipeline Parallelism
The Hong Kong University of Science and Technology(香港科技大学);Xidian University(西安电子科技大学);Shanghai Jiao Tong University(上海交通大学);Donghua University(东华大学);Pengcheng Laboratory(鹏城实验室)