BLEST: 利用张量核心实现高效的广度优先搜索
BLEST: Blazingly Efficient BFS using Tensor Cores
AI总结:
BLEST通过利用张量核心实现高效的BFS,采用位图结构和优化执行布局,结合内存效率和局部性改进,提升图计算性能。
摘要:
广度优先搜索(BFS)是一种基础的图核,支撑着广泛的应用。尽管现代GPU提供了专门的矩阵乘法-累加(MMA)单元,例如张量核心(TC),具有极高的吞吐量,但它们针对密集运算,使得利用它们进行不规则、无结构图计算变得非 trivial。特别是,充分利用它们进行BFS需要将边操作高效地映射到TCs上,同时避免冗余、负载不平衡和同步问题。我们提出了BLEST,一个利用TC加速的框架,将基于拉取的BFS流水线重新公式化围绕位图结构和精心设计的执行布局。BLEST引入了二值化的虚拟切片集(BVSS)以强制 warp 级负载平衡并消除前沿无关的工作分配。为了提高内存效率和更新局部性,我们应用了两种互补的图重新排序策略:一种针对社交类图的压缩导向排序,另一种针对非社交图的带宽减少排序。在计算层面,我们开发了一种批量的SpMSpV乘法模式,利用位运算的TC瓷砖来处理点积,从而不浪费输出条目,从而减少所需的MMA调用次数。最后,BLEST结合内核融合和惰性顶点更新方案以减少主机侧同步,缓解原子操作开销,并提高缓存局部性。实验表明,BLEST在广泛的现实世界图上平均比BerryBees、Gunrock和GSWITCH分别快3.58倍、4.64倍和4.9倍。
英文摘要:
Breadth-First Search (BFS) is a fundamental graph kernel that underpins a wide range of applications. While modern GPUs provide specialised Matrix-Multiply-Accumulate (MMA) units, e.g., Tensor Cores (TC), with extremely high throughput, they target dense operations, making it non-trivial to exploit them for irregular, unstructured graph computations. In particular, fully utilising them for a BFS requires an efficient mapping of the edge operations onto TCs while avoiding redundancy, load imbalance, and synchronisation. We present BLEST, a TC-accelerated framework that reformulates the pull-based BFS pipeline around a bitmap-oriented structure and a carefully engineered execution layout. BLEST introduces Binarised Virtual Slice Sets (BVSS) to enforce warp-level load balancing and to eliminate frontier-oblivious work assignment. To improve both memory efficiency and update locality across diverse graphs, we apply two complementary graph reordering strategies: a compression-oriented ordering for social-like graphs and a bandwidth-reducing ordering for non-social graphs. At the compute level, we develop a batched SpMSpV multiplication pattern that uses the bitwise TC tiles to handle dot products without wasting output entries, thereby reducing the number of required MMA calls. Finally, BLEST combines kernel fusion with a lazy vertex update scheme to reduce host-side synchronisation, mitigate atomic overheads, and improve cache locality. Experiments show that BLEST delivers, on average, $3.58\times$, $4.64\times$ and $4.9\times$ speedup over BerryBees, Gunrock, and GSWITCH, respectively, across a broad set of real-world graphs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。