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

一种双流水线双根全归约算法及其实现

A Doubly-pipelined, Dual-root Reduction-to-all Algorithm and Implementation

Jesper Larsson Träff

摘要:

我们讨论了一个简单的,基于二叉树的集体allreduce(减少到所有,MPI_Allreduce)操作的并行系统组成的$p$适当互连的处理器的算法。该算法可以双重流水线,以利用双向(类似电话)的通信系统的通信能力。为了使算法更加对称,处理器被组织成两个根树,两个根之间的通信。对于每个流水线块,每个非叶处理器采取三个通信步骤,包括从两个孩子接收和发送,以及向根发送和接收。在基于循环的、统一的、线性成本的通信模型中,其中同时发送和接收$n$数据元素对于系统相关常数$α$(通信启动等待时间)和$β$(每个元素的时间)花费时间$α+βn$,通过适当地选择流水线块大小,对$m$元素的向量进行全归约操作的时间是$O(\log p+\sqrt{m\log p})+3βm$。我们比较了MPI中的实现类似的减少,然后广播算法的性能,和本地MPI_Allreduce集体上的现代,小型$36\times 32$处理器集群。通过适当选择流水线块的数量,可以实现比不利用双向通信的流水线算法更好的性能。

英文摘要:

We discuss a simple, binary tree-based algorithm for the collective allreduce (reduction-to-all, MPI_Allreduce) operation for parallel systems consisting of $p$ suitably interconnected processors. The algorithm can be doubly pipelined to exploit bidirectional (telephone-like) communication capabilities of the communication system. In order to make the algorithm more symmetric, the processors are organized into two rooted trees with communication between the two roots. For each pipeline block, each non-leaf processor takes three communication steps, consisting in receiving and sending from and to the two children, and sending and receiving to and from the root. In a round-based, uniform, linear-cost communication model in which simultaneously sending and receiving $n$ data elements takes time $α+βn$ for system dependent constants $α$ (communication start-up latency) and $β$ (time per element), the time for the allreduce operation on vectors of $m$ elements is $O(\log p+\sqrt{m\log p})+3βm$ by suitable choice of the pipeline block size. We compare the performance of an implementation in MPI to similar reduce followed by broadcast algorithms, and the native MPI_Allreduce collective on a modern, small $36\times 32$ processor cluster. With proper choice of the number of pipeline blocks, it is possible to achieve better performance than pipelined algorithms that do not exploit bidirectional communication.

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

↑