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

同构稀疏集体通信的消息合并算法

Message-Combining Algorithms for Isomorphic, Sparse Collective Communication

Jesper Larsson Träff, Alexandra Carpen-Amarie, Sascha Hunold, Antoine Rougier

摘要:

同构(稀疏)集体通信是集体通信的一种形式,其中所有涉及的进程都在其他进程的小的、相同结构的邻域中进行通信。同构邻域通过将过程嵌入到规则结构的拓扑中来定义,例如,$d$维环面,其可以对应于底层系统的物理通信网络。同构集体通信对于实现模板和其他规则的稀疏分布式计算很有用,其中所有进程的行为(几乎)对称的假设是合理的。在本文中,我们将展示如何有效的消息组合通信计划同构,稀疏集体通信可以很容易地和有效地计算纯粹的本地计算。我们给计划的\emph{isomorphic \alltoall}和\emph{\allgather}通信,减少了通信轮数,从而从$s$的通信延迟,最多$Nd$,为社区组成的$s$进程的(小)因素$N$取决于结构的邻居和通信系统的能力。使用这些时间表,我们给出了\emph{zero-copy implementations}的同构集体使用MPI及其派生的数据表,以消除显式的,进程本地复制操作。通过对集体通信算法进行基准测试,针对简单的实现和相应的MPI邻域集体,我们记录了我们的实现的延迟显著改善,块大小高达几个字节。我们讨论进一步优化计算更好的时间表,其中一些已经实施和基准。

英文摘要:

Isomorphic (sparse) collective communication is a form of collective communication in which all involved processes communicate in small, identically structured neighborhoods of other processes. Isomorphic neighborhoods are defined via an embedding of the processes in a regularly structured topology, e.g., $d$-dimensional torus, which may correspond to the physical communication network of the underlying system. Isomorphic collective communication is useful for implementing stencil and other regular, sparse distributed computations, where the assumption that all processes behave (almost) symmetrically is justified. In this paper, we show how efficient message-combining communication schedules for isomorphic, sparse collective communication can easily and efficiently be computed by purely local computations. We give schemes for \emph{isomorphic \alltoall} and \emph{\allgather} communication that reduce the number of communication rounds and thereby the communication latency from $s$ to at most $Nd$, for neighborhoods consisting of $s$ processes with the (small) factor $N$ depending on the structure of the neighborhood and the capabilities of the communication system. Using these schedules, we give \emph{zero-copy implementations} of the isomorphic collectives using MPI and its derived datatypes to eliminate explicit, process-local copy operations. By benchmarking the collective communication algorithms against straightforward implementations and against the corresponding MPI neighborhood collectives, we document significant latency improvements of our implementations for block sizes of up to a few kilobytes. We discuss further optimizations for computing even better schedules, some of which have been implemented and benchmarked.

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

↑