GraphIt:一个用于图分析的高性能DSL
GraphIt: A High-Performance DSL for Graph Analytics
摘要:
图应用程序的性能瓶颈不仅取决于算法和底层硬件,还取决于输入图的大小和结构。程序员必须尝试大量技术的不同组合,以开发特定算法和图形类型的最佳实现。现有的图框架缺乏灵活性,仅支持有限的优化集。本文介绍了GraphIt,一个新的DSL的图形计算,生成快速实现的算法具有不同的性能特点,运行在不同的大小和结构的图形。GraphIt将计算的内容(算法)与计算的方式(调度)分开。程序员使用算法语言指定算法,并且使用调度语言指定性能优化。算法语言简化了算法的表达。我们制定图形优化,包括边遍历方向,数据布局,并行化,缓存,NUMA和内核融合优化,作为局部性,并行性和工作效率之间的权衡。调度语言使程序员能够通过将优化组合在一起来轻松地搜索这个复杂的权衡空间。我们还构建了一个自动调谐器来自动查找高性能的时间表。编译器使用一种新的调度表示,即图迭代空间,来建模、组合并确保大量优化的有效性。GraphIt在32个实验中的24个实验中,以高达4.8 $\times$的速度超过了六个最先进的共享内存框架(Ligra,Green-Marl,GraphMat,Galois,Gemini和Grazelle)中的下一个最快的框架,并且从未比其他实验中最快的框架慢43%以上。与下一个最快的框架相比,GraphIt还将代码行数减少了一个数量级。
英文摘要:
The performance bottlenecks of graph applications depend not only on the algorithm and the underlying hardware, but also on the size and structure of the input graph. Programmers must try different combinations of a large set of techniques to develop the best implementation for a specific algorithm and type of graph. Existing graph frameworks lack flexibility, supporting only a limited set of optimizations. This paper introduces GraphIt, a new DSL for graph computations that generates fast implementations for algorithms with different performance characteristics running on graphs with different sizes and structures. GraphIt separates what is computed (algorithm) from how it is computed (schedule). Programmers specify the algorithm using an algorithm language, and performance optimizations are specified using a scheduling language. The algorithm language simplifies expressing the algorithms. We formulate graph optimizations, including edge traversal direction, data layout, parallelization, cache, NUMA, and kernel fusion optimizations, as tradeoffs among locality, parallelism, and work-efficiency. The scheduling language enables programmers to easily search through this complicated tradeoff space by composing together optimizations. We also built an autotuner to automatically find high-performance schedules. The compiler uses a new scheduling representation, the graph iteration space, to model, compose, and ensure the validity of the large number of optimizations. GraphIt outperforms the next fastest of six state-of-the-art shared-memory frameworks (Ligra, Green-Marl, GraphMat, Galois, Gemini, and Grazelle) on 24 out of 32 experiments by up to 4.8$\times$, and is never more than 43% slower than the fastest framework on the other experiments. GraphIt also reduces the lines of code by up to an order of magnitude compared to the next fastest framework.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。