arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.14168cs.DCcs.DS
收藏

DePa:简单、可证明有效且实用的任务并行顺序维护

DePa: Simple, Provably Efficient, and Practical Order Maintenance for Task Parallelism

Sam Westrick, Larry Wang, Umut A. Acar

摘要:

并行计算中的许多问题需要对并行程序中的依赖结构进行推理。例如,动态竞争检测依赖于对顺序任务和并行任务之间的依赖性的有效的“运行中”确定(例如,以快速确定两个存储器访问是否并行发生)。这个“并行顺序维护”问题的几种解决方案已经提出,但它们都有几个缺点,包括缺乏可证明的界限,高渐近或实际开销,以及对并行执行的支持差。在本文中,我们提出了一个解决方案的并行顺序维护问题,证明是有效的,完全并行的,和实用的。我们的算法-称为DePa -将计算表示为图,并使用两个组件对图中的顶点进行编码:dag-depth和fork-path。在这种编码中,每个查询都需要$O(f/ω)$工作,其中$f$是比较的两个顶点的最小动态嵌套深度,$ω$是单词大小。在常见情况下(其中$f$较小,例如,小于100),每个查询仅需要单个存储器查找和小的恒定数量的逐位指令。此外,在分叉和连接处的图维护只需要持续的工作,对整体工作和跨度没有渐近影响。因此,DePa工作效率高,完全并行。

英文摘要:

A number of problems in parallel computing require reasoning about the dependency structure in parallel programs. For example, dynamic race detection relies on efficient "on-the-fly" determination of dependencies between sequential and parallel tasks (e.g. to quickly determine whether or not two memory accesses occur in parallel). Several solutions to this "parallel order maintenance" problem has been proposed, but they all have several drawbacks, including lack of provable bounds, high asymptotic or practical overheads, and poor support for parallel execution. In this paper, we present a solution to the parallel order maintenance problem that is provably efficient, fully parallel, and practical. Our algorithm -- called DePa -- represents a computation as a graph and encodes vertices in the graph with two components: a dag-depth and a fork-path. In this encoding, each query requires $O(f/ω)$ work, where $f$ is the minimum dynamic nesting depth of the two vertices compared, and $ω$ is the word-size. In the common case (where $f$ is small, e.g., less than 100), each query requires only a single memory lookup and a small constant number of bitwise instructions. Furthermore, graph maintenance at forks and joins requires only constant work, resulting in no asymptotic impact on overall work and span. DePa is therefore work-efficient and fully parallel.

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

↑