松弛算子能有效地分解迭代算法
Relaxed Schedulers Can Efficiently Parallelize Iterative Algorithms
摘要:
在理解迭代顺序算法固有的并行性方面已经取得了重大进展:对于许多经典算法,现在已经很好地理解了依赖结构的深度,并且已经开发了调度技术来利用这种浅层依赖结构进行高效的并行实现。一个相关的应用研究链已经研究了一些方法,通过这些方法,某些迭代的基于任务的算法可以通过放松的并发优先级排序器有效地并行化。这些允许在插入和删除任务时实现高并发性,但由于调度程序的语义宽松,因此会以执行多余的工作为代价。在这项工作中,我们采取了统一这两个研究方向的一步,通过显示,存在一个家庭的放松优先级排序,可以有效地和确定性地执行经典的迭代算法,如贪婪的最大独立集(MIS)和匹配。我们的主要结果表明,给定一个随机调度程序与预期的松弛因子$k$在任务上的最大允许的优先级反转,和$n$顶点上的任何图形,调度程序是能够执行贪婪的MIS,只有一个附加因子的聚($k$)预期额外的迭代相比,一个确切的(但不可扩展)调度程序。这个反直觉的结果表明,在计算MIS时,松弛的开销不依赖于输入图的输入大小或结构。实验结果表明,由于高度可扩展的调度器,这种开销可以明显抵消性能的增益。总之,我们提出了一个有效的方法来确定性并行化迭代顺序算法,可证明的运行时间保证方面的执行任务完成的数量。
英文摘要:
There has been significant progress in understanding the parallelism inherent to iterative sequential algorithms: for many classic algorithms, the depth of the dependence structure is now well understood, and scheduling techniques have been developed to exploit this shallow dependence structure for efficient parallel implementations. A related, applied research strand has studied methods by which certain iterative task-based algorithms can be efficiently parallelized via relaxed concurrent priority schedulers. These allow for high concurrency when inserting and removing tasks, at the cost of executing superfluous work due to the relaxed semantics of the scheduler. In this work, we take a step towards unifying these two research directions, by showing that there exists a family of relaxed priority schedulers that can efficiently and deterministically execute classic iterative algorithms such as greedy maximal independent set (MIS) and matching. Our primary result shows that, given a randomized scheduler with an expected relaxation factor of $k$ in terms of the maximum allowed priority inversions on a task, and any graph on $n$ vertices, the scheduler is able to execute greedy MIS with only an additive factor of poly($k$) expected additional iterations compared to an exact (but not scalable) scheduler. This counter-intuitive result demonstrates that the overhead of relaxation when computing MIS is not dependent on the input size or structure of the input graph. Experimental results show that this overhead can be clearly offset by the gain in performance due to the highly scalable scheduler. In sum, we present an efficient method to deterministically parallelize iterative sequential algorithms, with provable runtime guarantees in terms of the number of executed tasks to completion.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。