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

高效的并行自调整计算

Efficient Parallel Self-Adjusting Computation

Daniel Anderson, Guy E. Blelloch, Anubhav Baweja, Umut A. Acar

摘要:

自调整计算是一种从静态算法自动生成动态算法的方法。该方法的工作原理是跟踪控制和数据依赖关系,并在进行更新时通过依赖关系传播更改。在顺序设置中进行了广泛的研究,存在一些关于并行自调整计算的结果,但要么只适用于有限的计算类,如映射缩减,要么是没有理论分析其性能的ad-hoc系统。在本文中,我们提出了第一个系统的并行自调整计算,适用于广泛的嵌套并行算法,并提供理论界的工作和跨度的动态算法。与顺序设置中的边界一样,我们的边界将不同输入上的计算之间的“距离”度量与传播更新的成本相关联。然而,这里我们也考虑传播成本中的并行性。本文的主要创新之处在于使用串并行树(SP树)来跟踪顺序和并行控制依赖关系,以允许并行安全地应用更改的传播。我们在理论上和实验中表明,我们的系统允许算法在大型数据集上产生更新的结果,比从头开始执行要快得多。我们展示了我们的系统与几个示例应用程序,包括动态序列和动态树的算法。在研究的所有案例中,我们表明并行自调整计算可以在节省工作量和并行时间方面提供显着的好处。

英文摘要:

Self-adjusting computation is an approach for automatically producing dynamic algorithms from static ones. The approach works by tracking control and data dependencies, and propagating changes through the dependencies when making an update. Extensively studied in the sequential setting, some results on parallel self-adjusting computation exist, but are either only applicable to limited classes of computations, such as map-reduce, or are ad-hoc systems with no theoretical analysis of their performance. In this paper, we present the first system for parallel self-adjusting computation that applies to a wide class of nested parallel algorithms and provides theoretical bounds on the work and span of the resulting dynamic algorithms. As with bounds in the sequential setting, our bounds relate a "distance" measure between computations on different inputs to the cost of propagating an update. However, here we also consider parallelism in the propagation cost. The main innovation in the paper is in using Series-Parallel trees (SP trees) to track sequential and parallel control dependencies to allow propagation of changes to be applied safely in parallel. We show both theoretically and through experiments that our system allows algorithms to produce updated results over large datasets significantly faster than from-scratch execution. We demonstrate our system with several example applications, including algorithms for dynamic sequences and dynamic trees. In all cases studied, we show that parallel self-adjusting computation can provide a significant benefit in both work savings and parallel time.

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

↑