arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.06310cs.DCcs.LGcs.PF
收藏

基于GPU的边缘化图核的高吞吐量求解

A High-Throughput Solver for Marginalized Graph Kernels on GPU

Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室)

Yu-Hang Tang, Oguz Selvitopi, Doru Popovici, Aydın Buluç

摘要:

我们提出了一个通用GPU上的线性求解器的设计和优化,用于对标记图之间的边缘化图内核进行高效和高吞吐量的评估。求解器实现了预处理共轭梯度(PCG)方法来计算与两个图的张量积相关的广义拉普拉斯方程的解。为了解决当前一代GPU的指令吞吐量和内存带宽之间的差距,我们的求解器在PCG中执行矩阵向量点积运算时,在不将其存储在内存中的情况下动态地形成张量积线性系统。这种动态计算是通过在线程束中使用线程来通过称为瓦片的小正方形矩阵块协作地流式传输各个图的邻接和边缘标签矩阵来实现的,然后将其分级在寄存器和共享存储器中以供以后重用。跨线程块的线程束可以经由共享存储器进一步共享区块以增加数据重用。我们利用稀疏的图形分层存储非空的瓷砖使用坐标格式和非零元素内的每个瓷砖使用位图。此外,我们提出了一个新的分区为基础的重新排序算法聚集的非零元素的图到更少,但更密集的瓦片,以提高效率的稀疏格式。我们对各种密度的图块的图张量积原语进行了广泛的理论分析,并评估了它们在合成和真实世界数据集上的性能。我们的求解器比现有的基于CPU的求解器(如GraKeL和GraphKernels)提供了三到四个数量级的加速。求解器的功能使基于内核的学习任务能够以前所未有的规模进行。

英文摘要:

We present the design and optimization of a linear solver on General Purpose GPUs for the efficient and high-throughput evaluation of the marginalized graph kernel between pairs of labeled graphs. The solver implements a preconditioned conjugate gradient (PCG) method to compute the solution to a generalized Laplacian equation associated with the tensor product of two graphs. To cope with the gap between the instruction throughput and the memory bandwidth of current generation GPUs, our solver forms the tensor product linear system on-the-fly without storing it in memory when performing matrix-vector dot product operations in PCG. Such on-the-fly computation is accomplished by using threads in a warp to cooperatively stream the adjacency and edge label matrices of individual graphs by small square matrix blocks called tiles, which are then staged in registers and the shared memory for later reuse. Warps across a thread block can further share tiles via the shared memory to increase data reuse. We exploit the sparsity of the graphs hierarchically by storing only non-empty tiles using a coordinate format and nonzero elements within each tile using bitmaps. Besides, we propose a new partition-based reordering algorithm for aggregating nonzero elements of the graphs into fewer but denser tiles to improve the efficiency of the sparse format. We carry out extensive theoretical analyses on the graph tensor product primitives for tiles of various density and evaluate their performance on synthetic and real-world datasets. Our solver delivers three to four orders of magnitude speedup over existing CPU-based solvers such as GraKeL and GraphKernels. The capability of the solver enables kernel-based learning tasks at unprecedented scales.

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

↑