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

用GraphIt优化有序图算法

Optimizing Ordered Graph Algorithms with GraphIt

Yunming Zhang, Ajay Brahmakshatriya, Xinyi Chen, Laxman Dhulipala, Shoaib Kamil, Saman Amarasinghe, Julian Shun

摘要:

许多图问题可以使用有序并行图算法来解决,这些算法通过减少冗余工作来实现比无序算法显著的加速。本文介绍了一种新的基于优先级的扩展GraphIt,一个特定领域的语言,用于编写图形应用程序,以简化编写高性能的并行有序图算法。该扩展允许以动态顺序处理顶点,同时对用户隐藏低级实现细节。我们扩展了新的程序分析,转换和代码生成的编译器,以产生快速实现的有序并行图形算法。我们还介绍了桶融合,一个新的性能优化,融合在一起的不同轮的有序算法,以减少同步开销,从而在$1.2\times$ -3 $\times$加速现有的最快的有序算法实现大直径的道路网络。通过扩展,GraphIt在六种有序图算法上实现了高达3 $\times$的加速,这些算法超过了最先进的框架和支持有序算法的手动优化实现(Julienne,Galois和GAPBS)。

英文摘要:

Many graph problems can be solved using ordered parallel graph algorithms that achieve significant speedup over their unordered counterparts by reducing redundant work. This paper introduces a new priority-based extension to GraphIt, a domain-specific language for writing graph applications, to simplify writing high-performance parallel ordered graph algorithms. The extension enables vertices to be processed in a dynamic order while hiding low-level implementation details from the user. We extend the compiler with new program analyses, transformations, and code generation to produce fast implementations of ordered parallel graph algorithms. We also introduce bucket fusion, a new performance optimization that fuses together different rounds of ordered algorithms to reduce synchronization overhead, resulting in $1.2\times$--3$\times$ speedup over the fastest existing ordered algorithm implementations on road networks with large diameters. With the extension, GraphIt achieves up to 3$\times$ speedup on six ordered graph algorithms over state-of-the-art frameworks and hand-optimized implementations (Julienne, Galois, and GAPBS) that support ordered algorithms.

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

↑