通过三级分区实现的通信避免SpGEMM算法
Communication-Avoiding SpGEMM via Trident Partitioning on Hierarchical GPU Interconnects
AI总结:
本文提出Trident算法,通过通信避免技术和异步通信优化现代超算互联架构,减少节点间通信并提升性能,实现在无结构稀疏矩阵上的加速。
摘要:
两个稀疏矩阵的乘法,即SpGEMM,是科学计算和大规模数据分析中的关键内核,支撑着图算法、机器学习、模拟和计算生物学。由于稀疏性通常高度无结构,实现高性能具有挑战性,因为它限制了内存效率和可扩展性。在分布式内存中,跨节点交换和合并部分产品进一步限制了性能。这些问题在现代异构超级计算机上被加深,这些计算机具有深层级的GPU互连。当前的SpGEMM实现忽视了节点内和节点间的带宽差距,导致不必要的数据移动和同步,没有充分利用快速的节点内互连。为了解决这些挑战,我们引入Trident,一种层次感知的2D分布式SpGEMM算法,利用通信避免技术和异步通信来利用现代超算互连的层次和异构架构。Trident的核心是新颖的三叉形分区方案,它实现了层次感知的分解,并利用节点内GPU之间的更高带宽来减少节点间通信。这里,我们在无结构矩阵上评估Trident,实现了比2D SpGEMM快2.38倍的速度提升,几何均值速度提升为1.54倍。Trident在NERSC的Perlmutter超算上将节点间通信量减少高达2倍。此外,我们展示了Trident在加速马尔可夫聚类中的有效性,相比竞争策略实现了2倍的速度提升。
英文摘要:
The multiplication of two sparse matrices, known as SpGEMM, is a key kernel in scientific computing and large-scale data analytics, underpinning graph algorithms, machine learning, simulations, and computational biology, where sparsity is often highly unstructured. The unstructured sparsity makes achieving high performance challenging because it limits both memory efficiency and scalability. In distributed memory, the cost of exchanging and merging partial products across nodes further constrains performance. These issues are exacerbated on modern heterogeneous supercomputers with deep, hierarchical GPU interconnects. Current SpGEMM implementations overlook the gap between intra-node and inter-node bandwidth, resulting in unnecessary data movement and synchronization not fully exploiting the fast intra-node interconnect. To address these challenges, we introduce Trident, a hierarchy-aware 2D distributed SpGEMM algorithm that uses communication-avoiding techniques and asynchronous communication to exploit the hierarchical and heterogeneous architecture of modern supercomputing interconnect. Central to Trident is the novel trident partitioning scheme, which enables hierarchy-aware decomposition and reduces internode communication by leveraging the higher bandwidth between GPUs within a node compared to across nodes. Here, we evaluate Trident on unstructured matrices, achieving up to $2.38\times$ speedup over a 2D SpGEMM with a corresponding geometric mean speedup of $1.54\times$. Trident reduces internode communication volume by up to $2\times$ on NERSC's Perlmutter supercomputer. Furthermore, we demonstrate the effectiveness of Trident in speeding up Markov Clustering, achieving up to $2\times$ speedup compared to competing strategies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。