Lune

SC2023顶会

Runtime Composition of Iterations for Fusing Loop-carried Sparse Dependence

Kazem Cheshmi, Michelle Strout, Maryam Mehri Dehnavi

摘要

Dependence between iterations in sparse computations causes inefficient use of memory and computation resources. This paper proposes sparse fusion, a technique that generates efficient parallel code for the combination of two sparse matrix kernels, where at least one of the kernels has loop-carried dependencies. Existing implementations optimize individual sparse kernels separately. However, this approach leads to synchronization overheads and load imbalance due to the irregular dependence patterns of sparse kernels, as well as inefficient cache usage due to their irregular memory access patterns. Sparse fusion uses a novel inspection strategy and code transformation to generate parallel fused code optimized for data locality and load balance. Sparse fusion outperforms the best of unfused implementations using ParSy and MKL by an average of 4.2× and is faster than the best of fused implementations using existing scheduling algorithms, such as LBC, DAGP, and wavefront by an average of 4× for various kernel combinations.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Adaptive Algebraic Reuse of Reordering in Cholesky Factorizations with Dynamic Sparsity Patterns 引用了 NASOQ: numerically accurate sparsity-oriented QP solver
  • SPLAT: A Framework for Optimised GPU Code-Generation for SParse reguLar ATtention 引用了 SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning
  • SPLAT: A Framework for Optimised GPU Code-Generation for SParse reguLar ATtention 引用了 Register Tiling for Unstructured Sparsity in Neural Network Inference
  • Register Tiling for Unstructured Sparsity in Neural Network Inference 引用了 Vectorizing Sparse Matrix Computations with Partially-Strided Codelets
  • Modular Construction and Optimization of the UZP Sparse Format for SpMV on CPUs 引用了 Vectorizing Sparse Matrix Computations with Partially-Strided Codelets
  • Modular Construction and Optimization of the UZP Sparse Format for SpMV on CPUs 引用了 Register Tiling for Unstructured Sparsity in Neural Network Inference
  • GALA: A High Performance Graph Neural Network Acceleration LAnguage and Compiler 引用了 Vectorizing Sparse Matrix Computations with Partially-Strided Codelets
  • GALA: A High Performance Graph Neural Network Acceleration LAnguage and Compiler 引用了 SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. SPLAT: A Framework for Optimised GPU Code-Generation for SParse reguLar ATtentionAhan Gupta, Yueming Yuan, Devansh Jain, Yuhao Ge 等OOPSLA 2025 · 3 次引用
  2. Adaptive Algebraic Reuse of Reordering in Cholesky Factorizations with Dynamic Sparsity PatternsBehrooz Zarebavani, Danny M. Kaufman, David I. W. Levin, Maryam Mehri DehnaviSIGGRAPH 2025 · 1 次引用
  3. Modular Construction and Optimization of the UZP Sparse Format for SpMV on CPUsAlonso Rodríguez-Iglesias, Santoshkumar T. Tongli, Emily Tucker, Louis-Noël Pouchet 等PLDI 2025 · 1 次引用
  4. GALA: A High Performance Graph Neural Network Acceleration LAnguage and CompilerDamitha Lenadora, Nikhil Jayakumar, Chamika Sudusinghe, Charith MendisOOPSLA 2025 · 1 次引用

它引用的 Paper5

  1. Lessons Learned from the Chameleon TestbedKate Keahey, Jason Anderson, Zhuo Zhen, Pierre Riteau 等USENIX ATC 2020 · 398 次引用
  2. SparseTIR: Composable Abstractions for Sparse Compilation in Deep LearningZihao Ye, Ruihang Lai, Junru Shao, Tianqi Chen 等ASPLOS 2023 · 86 次引用
  3. NASOQ: numerically accurate sparsity-oriented QP solverKazem Cheshmi, Danny M. Kaufman, Shoaib Kamil, Maryam Mehri DehnaviSIGGRAPH 2020 · 29 次引用
  4. Register Tiling for Unstructured Sparsity in Neural Network InferenceLucas Wilkinson, Kazem Cheshmi, Maryam Mehri DehnaviPLDI 2023 · 17 次引用
  5. Vectorizing Sparse Matrix Computations with Partially-Strided CodeletsKazem Cheshmi, Zachary Cetinic, Maryam Mehri DehnaviSC 2022 · 4 次引用

相关 Paper

  1. SpV8: Pursuing Optimal Vectorization and Regular Computation Pattern in SpMVChenyang Li, Tian Xia, Wenzhe Zhao, Nanning Zheng 等DAC 2021 · 17 次引用
  2. Compilation of Shape Operators on Sparse ArraysAlexander J. Root, Bobby Yan, Peiming Liu, Christophe Gyurgyik 等OOPSLA 2024 · 3 次引用
  3. ALRESCHA: A Lightweight Reconfigurable Sparse-Computation AcceleratorBahar Asgari, Ramyad Hadidi, Tushar Krishna, Hyesoon Kim 等HPCA 2020 · 63 次引用
  4. SpaceFusion: Advanced Deep Learning Operator Fusion via Space-Mapping GraphLiang Zhu, Jianguo Yao, Haibing GuanEuroSys 2025 · 3 次引用
  5. Mosaic: An Interoperable Compiler for Tensor AlgebraManya Bansal, Olivia Hsu, Kunle Olukotun, Fredrik KjolstadPLDI 2023 · 16 次引用
黄昏的海面,两侧是细线勾勒的悬崖