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

无结构稀疏张量代数的划分以实现负载平衡的并行执行

Partitioning Unstructured Sparse Tensor Algebra for Load-Balanced Parallel Execution

Stanford University(斯坦福大学)

Atharva Chougule, Alexander J Root, Rubens Lacouture, Bobby Yan, Rohan Yadav, Fredrik Kjolstad

AI总结:

本文提出首个能保证负载平衡的稀疏张量代数划分算法,适用于多核CPU和GPU的并行执行,其性能优于Intel MKL和NVIDIA cuSPARSE等库。

摘要:

稀疏张量代数的高效并行化具有挑战性,因为其计算结构不规则、数据依赖性强且可能偏斜。我们提出了首个能保证负载平衡的划分算法,适用于任何稀疏张量代数表达式。该算法将并行合并算法推广到任意数量的操作数和多维分层稀疏数据结构。我们将其实现于现有的稀疏张量代数编译框架中,以自动生成针对多核CPU和GPU的并行稀疏张量代数内核。我们证明生成的代码在Intel MKL和NVIDIA cuSPARSE等库的并行化策略中表现优异(几何平均值为0.73-3.4倍),并在未开发专用算法的稀疏张量表达式中表现更佳(几何平均值为2.0-6.4倍)。

英文摘要:

Sparse tensor algebra is challenging to efficiently parallelize due to the irregular, data-dependent, and potentially skewed structure of sparse computation. We propose the first partitioning algorithm that provably load balances the computation of any sparse tensor algebra expression across parallel execution units. Our algorithm generalizes parallel merging algorithms to any number of operands, and to multi-dimensional, hierarchical sparse data structures. We implement our algorithm within an existing sparse tensor algebra compilation framework to automatically generate parallel sparse tensor algebra kernels that target multi-core CPUs and GPUs. We show that our generated code is competitive with hand-implemented parallelization strategies used by vendor libraries like Intel MKL and NVIDIA cuSPARSE (geo-means of $0.93$--$5.5\times$) and \taco (geo-means of $1.2$--$2.4\times$), and significantly outperforms PyTorch Sparse's general-purpose strategies on sparse tensor expressions where specialized algorithms have not been developed (geo-means of $2.0$--$9.1\times$).

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

↑