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

GraphCage:GPU上的缓存感知图形处理

GraphCage: Cache Aware Graph Processing on GPUs

Xuhao Chen

摘要:

由于图算法的不规则性,有效的图处理是具有挑战性的。使用GPU来加速不规则图算法甚至更难高效,因为GPU的高度结构化的SIMT架构并不适合不规则应用。由于之前花费了大量精力将图形算法巧妙地映射到GPU上,GPU上的图形处理性能仍然受到内存延迟的限制,导致计算资源的利用率较低。由稀疏图数据结构生成的随机存储器访问是这种显著的存储器访问延迟的主要原因。简单地应用为矩阵计算提出的常规高速缓存分块技术由于GPU上的显著开销而具有有限的益处。我们提出了GraphCage,一个以缓存为中心的优化框架,用于在GPU上进行高效的图形处理。我们首先提出了一个面向吞吐量的缓存阻塞计划(TOCAB)在推和拉方向。与传统的高速缓存阻塞,遭受重复访问时,在GPU上处理大型图形,TOCAB是专门针对GPU架构优化,以减少这种开销,提高内存访问效率。为了将我们的方案集成到最先进的实现中,而不会产生显著的开销,我们通过考虑子图的稀疏性来协调TOCAB与负载均衡策略。为了使缓存阻塞的算法,我们考虑的好处和开销在不同的迭代与不同的工作集大小,并应用TOCAB拓扑驱动的内核在拉方向。评估表明,与手工优化的实现和最先进的框架(例如CuSha和Gunrock)相比,GraphCage可以将性能提高2 ~ 4倍,并且内存消耗比CuSha更少。

英文摘要:

Efficient Graph processing is challenging because of the irregularity of graph algorithms. Using GPUs to accelerate irregular graph algorithms is even more difficult to be efficient, since GPU's highly structured SIMT architecture is not a natural fit for irregular applications. With lots of previous efforts spent on subtly mapping graph algorithms onto the GPU, the performance of graph processing on GPUs is still highly memory-latency bound, leading to low utilization of compute resources. Random memory accesses generated by the sparse graph data structure are the major causes of this significant memory access latency. Simply applying the conventional cache blocking technique proposed for matrix computation have limited benefit due to the significant overhead on the GPU. We propose GraphCage, a cache centric optimization framework for highly efficient graph processing on GPUs. We first present a throughput-oriented cache blocking scheme (TOCAB) in both push and pull directions. Comparing with conventional cache blocking which suffers repeated accesses when processing large graphs on GPUs, TOCAB is specifically optimized for the GPU architecture to reduce this overhead and improve memory access efficiency. To integrate our scheme into state-of-the-art implementations without significant overhead, we coordinate TOCAB with load balancing strategies by considering the sparsity of subgraphs. To enable cache blocking for traversal-based algorithms, we consider the benefit and overhead in different iterations with different working set sizes, and apply TOCAB for topology-driven kernels in pull direction. Evaluation shows that GraphCage can improve performance by 2 ~ 4x compared to hand optimized implementations and state-of-the-art frameworks (e.g. CuSha and Gunrock), with less memory consumption than CuSha.

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

↑