GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Two-tree broadcast

The two-tree broadcast (abbreviated 2tree-broadcast or 23-broadcast) is an algorithm that implements a broadcast communication pattern on a distributed system using message passing. A broadcast is a commonly used collective operation that sends data from one processor to all other processors. The two-tree broadcast communicates concurrently over two binary trees that span all processors. This achieves full usage of the bandwidth in the full-duplex communication model while having a startup latency logarithmic in the number of partaking processors. The algorithm can also be adapted to perform a reduction or prefix sum. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

The two-tree broadcast (abbreviated 2tree-broadcast or 23-broadcast) is an algorithm that implements a broadcast communication pattern on a distributed system using message passing. A broadcast is a commonly used collective operation that sends data from one processor to all other processors. The two-tree broadcast communicates concurrently over two binary trees that span all processors. This achieves full usage of the bandwidth in the full-duplex communication model while having a startup latency logarithmic in the number of partaking processors. The algorithm can also be adapted to perform a reduction or prefix sum. A reduction ( MPI_Reduce in the MPI standard) computes \bigoplus_{i=0}^{p-1} M_i where is a vector of length originally available at processor and \bigoplus is a binary operation that is associative, but not necessarily commutative. The result is stored at a specified root processor . Assume that or . In this case the communication is identical to the broadcast, except that the communication direction is reversed. Each process receives two blocks from its children, reduces them with its own block, and sends the result to its parent. The root takes turns receiving blocks from the roots of and and reduces them with its own data. The communication time is the same as for the Broadcast and the amount of data reduced per processor is . If the reduce operation is commutative, the result can be achieved for any root by renumbering the processors. If the operation is not commutative and the root is not or , then is a lower bound for the communication time. In this case, the remaining processors are split into two subgroups. The processors perform a reduction to the root and the processors perform a reduction to the root . Processor receives blocks alternating from the two roots of the subgroups. A prefix sum ( MPI_Scan ) computes \bigoplus_{i=0}^{j} M_i for each processor where is a vector of length originally available at processor and \bigoplus is a binary associative operation. Using an inorder binary tree, a prefix sum can be computed by first performing an up-phase in which each interior node computes a partial sum \bigoplus_{i=l}^{r} M_i for left- and rightmost leaves and , followed by a down-phase in which prefixes of the form \bigoplus_{i=0}^{l-1} M_i are sent down the tree and allow each processor to finish computing its prefix sum. The communication in the up-phase is equivalent to a reduction to processor and the communication in the down-phase is equivalent to a broadcast from the processor . The total communication time is about twice the communication time of the two-tree broadcast.

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Two-tree broadcast". 1786456139. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1368875625

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·