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

Meerkat:一个面向 GPU 上动态图算法的框架

Meerkat: A framework for Dynamic Graph Algorithms on GPUs

Kevin Jude Concessao, Unnikrishnan Cheramangalath, MJ Ricky Dev, Rupesh Nasre

AI总结:

本文提出 GPU 动态图库 Meerkat,采用基于哈希表的邻域表示与 warp 协作执行,实现多种动态图算法,并在查询、更新及算法性能上显著优于 Hornet。

摘要:

图算法因其多变的拓扑结构和不规则的访问模式而难以实现。现实世界中的图本质上是动态的,经常发生边和顶点的添加以及删除。动态图的典型例子包括社交网络、协作网络和道路网络。在动态图上重复应用静态算法效率很低。遗憾的是,对于如何在 GPU 等大规模并行架构上高效处理动态图,我们所知甚少。现有的表示和处理动态图的方法要么不够通用,要么效率低下。在这项工作中,我们提出了一个基于库的动态图算法框架,该框架给出了一种面向 GPU 定制的图表示,并利用了 warp 协作执行模型。这个名为 Meerkat 的库建立在近期提出的一种 GPU 上动态图表示之上。该表示利用基于哈希表的机制来存储顶点的邻域。Meerkat 还支持对一组顶点进行快速迭代,例如整个顶点集合或某个顶点的邻居。基于 Meerkat 中编码的高效迭代模式,我们实现了常用图算法的动态版本,例如广度优先搜索、单源最短路径、三角形计数、弱连通分量和 PageRank。与最先进的动态图分析框架 Hornet 相比,Meerkat 在查询、插入和删除操作上分别快 $12.6\ imes$、$12.94\ imes$ 和 $6.1\ imes$。通过使用多种现实世界图,我们观察到 Meerkat 显著提高了底层动态图算法的效率。平均而言,Meerkat 在 BFS、SSSP、PageRank 和 WCC 上的表现分别比 Hornet 好 $1.17\ imes$、$1.32\ imes$、$1.74\ imes$ 和 $6.08\ imes$。

英文摘要:

Graph algorithms are challenging to implement due to their varying topology and irregular access patterns. Real-world graphs are dynamic in nature and routinely undergo edge and vertex additions, as well as, deletions. Typical examples of dynamic graphs are social networks, collaboration networks, and road networks. Applying static algorithms repeatedly on dynamic graphs is inefficient. Unfortunately, we know little about how to efficiently process dynamic graphs on massively parallel architectures such as GPUs. Existing approaches to represent and process dynamic graphs are either not general or inefficient. In this work, we propose a library-based framework for dynamic graph algorithms that proposes a GPU-tailored graph representation and exploits the warp-cooperative execution model. The library, named Meerkat, builds upon a recently proposed dynamic graph representation on GPUs. This representation exploits a hashtable-based mechanism to store a vertex's neighborhood. Meerkat also enables fast iteration through a group of vertices, such as the whole set of vertices or the neighbors of a vertex. Based on the efficient iterative patterns encoded in Meerkat, we implement dynamic versions of the popular graph algorithms such as breadth-first search, single-source shortest paths, triangle counting, weakly connected components, and PageRank. Compared to the state-of-the-art dynamic graph analytics framework Hornet, Meerkat is $12.6\times$, $12.94\times$, and $6.1\times$ faster, for query, insert, and delete operations, respectively. Using a variety of real-world graphs, we observe that Meerkat significantly improves the efficiency of the underlying dynamic graph algorithm. Meerkat performs $1.17\times$ for BFS, $1.32\times$ for SSSP, $1.74\times$ for PageRank, and $6.08\times$ for WCC, better than Hornet on average.

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

↑