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

几乎不同步的并行自适应采样

Parallel Adaptive Sampling with almost no Synchronization

Alexander van der Grinten, Eugenio Angriman, Henning Meyerhenke

摘要:

当精确解太昂贵时,通过采样进行近似是一种广泛使用的技术。在本文中,我们提出了一个有效的自适应(a。K. a.渐进的)采样算法。我们的基本算法技术不需要同步,除了原子加载-获取和存储-释放操作。但是,它确实需要每个线程O(n)内存,其中n是采样状态的大小。我们提出的算法的变体,要么减少这种内存消耗到O(1)或确保确定性的结果获得。使用KADABRA算法介数中心(网络分析中的一种流行的措施)近似作为一个案例研究,我们证明了我们的技术的经验性能。特别是,在32核机器上,我们的最佳算法比使用简单的基于OpenMP的并行化快2.9倍,比现有的KADABRA实现快65.3倍。

英文摘要:

Approximation via sampling is a widespread technique whenever exact solutions are too expensive. In this paper, we present techniques for an efficient parallelization of adaptive (a. k. a. progressive) sampling algorithms on multi-threaded shared-memory machines. Our basic algorithmic technique requires no synchronization except for atomic load-acquire and store-release operations. It does, however, require O(n) memory per thread, where n is the size of the sampling state. We present variants of the algorithm that either reduce this memory consumption to O(1) or ensure that deterministic results are obtained. Using the KADABRA algorithm for betweenness centrality (a popular measure in network analysis) approximation as a case study, we demonstrate the empirical performance of our techniques. In particular, on a 32-core machine, our best algorithm is 2.9x faster than what we could achieve using a straightforward OpenMP-based parallelization and 65.3x faster than the existing implementation of KADABRA.

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

↑