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

利用图形属性加速基于GPU的图形处理:一种模型驱动的方法

Using Graph Properties to Speed-up GPU-based Graph Traversal: A Model-driven Approach

Merijn Verstraaten, Ana Lucia Varbanescu, Cees de Laat

摘要:

虽然众所周知并且公认的是图算法的性能严重依赖于输入数据,但是令人惊讶的是,很少有研究来量化和预测图结构对性能的影响。在GPU等众核系统上运行的并行图形算法也不例外:大多数研究都集中在如何在特定GPU上有效地实现和调整不同的图形操作。然而,由于用于对系统进行基准测试的图形,因此仅间接考虑了输入图形的性能影响。在这项工作中,我们提出了一个案例研究,研究如何使用输入图的属性,以提高性能的广度优先搜索(BFS)图遍历。为此,我们首先研究了248个图中15个不同BFS实现的性能变化。使用此性能数据,我们表明,显着的速度可以通过结合最好的实现,为每个级别的遍历。为了利用这种数据相关的优化,我们必须正确预测每个图级别算法的相对性能,并在运行时为每个级别启用动态切换到最佳算法。我们使用收集的性能数据来训练二元决策树,以实现高精度预测和快速切换。我们的经验表明,我们的决策树是足够快,允许实现之间的动态切换,没有明显的开销,并在其预测足够准确,使显着的BFS加速。我们的结论是,我们的模型驱动方法(1)使BFS能够超越最先进的GPU算法,(2)可以适用于其他BFS变体,其他算法或更具体的数据集。

英文摘要:

While it is well-known and acknowledged that the performance of graph algorithms is heavily dependent on the input data, there has been surprisingly little research to quantify and predict the impact the graph structure has on performance. Parallel graph algorithms, running on many-core systems such as GPUs, are no exception: most research has focused on how to efficiently implement and tune different graph operations on a specific GPU. However, the performance impact of the input graph has only been taken into account indirectly as a result of the graphs used to benchmark the system. In this work, we present a case study investigating how to use the properties of the input graph to improve the performance of the breadth-first search (BFS) graph traversal. To do so, we first study the performance variation of 15 different BFS implementations across 248 graphs. Using this performance data, we show that significant speed-up can be achieved by combining the best implementation for each level of the traversal. To make use of this data-dependent optimization, we must correctly predict the relative performance of algorithms per graph level, and enable dynamic switching to the optimal algorithm for each level at runtime. We use the collected performance data to train a binary decision tree, to enable high-accuracy predictions and fast switching. We demonstrate empirically that our decision tree is both fast enough to allow dynamic switching between implementations, without noticeable overhead, and accurate enough in its prediction to enable significant BFS speedup. We conclude that our model-driven approach (1) enables BFS to outperform state of the art GPU algorithms, and (2) can be adapted for other BFS variants, other algorithms, or more specific datasets.

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

↑