SC2023Top-tier venue
Runtime Composition of Iterations for Fusing Loop-carried Sparse Dependence
Kazem Cheshmi, Michelle Strout, Maryam Mehri Dehnavi
Abstract
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.
• Software and its engineering → Runtime environments.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers4
- SPLAT: A Framework for Optimised GPU Code-Generation for SParse reguLar ATtentionAhan Gupta, Yueming Yuan, Devansh Jain, Yuhao Ge et al.OOPSLA 2025 · 3 citations
- 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 citation
- 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 et al.PLDI 2025 · 1 citation
- GALA: A High Performance Graph Neural Network Acceleration LAnguage and CompilerDamitha Lenadora, Nikhil Jayakumar, Chamika Sudusinghe, Charith MendisOOPSLA 2025 · 1 citation
Builds on5
- Lessons Learned from the Chameleon TestbedKate Keahey, Jason Anderson, Zhuo Zhen, Pierre Riteau et al.USENIX ATC 2020 · 398 citations
- SparseTIR: Composable Abstractions for Sparse Compilation in Deep LearningZihao Ye, Ruihang Lai, Junru Shao, Tianqi Chen et al.ASPLOS 2023 · 86 citations
- NASOQ: numerically accurate sparsity-oriented QP solverKazem Cheshmi, Danny M. Kaufman, Shoaib Kamil, Maryam Mehri DehnaviSIGGRAPH 2020 · 29 citations
- Register Tiling for Unstructured Sparsity in Neural Network InferenceLucas Wilkinson, Kazem Cheshmi, Maryam Mehri DehnaviPLDI 2023 · 17 citations
- Vectorizing Sparse Matrix Computations with Partially-Strided CodeletsKazem Cheshmi, Zachary Cetinic, Maryam Mehri DehnaviSC 2022 · 4 citations
Related papers
- Path-sensitive sparse analysis without path conditionsQingkai Shi, Peisen Yao, Rongxin Wu, Charles ZhangPLDI 2021 · 24 citations
- Lightweight and Locality-Aware Composition of Black-Box SubroutinesManya Bansal, Dillon Sharlet, Jonathan Ragan-Kelley, Saman P. AmarasinghePLDI 2025
- SpaceFusion: Advanced Deep Learning Operator Fusion via Space-Mapping GraphLiang Zhu, Jianguo Yao, Haibing GuanEuroSys 2025 · 3 citations
- Compilation of Shape Operators on Sparse ArraysAlexander J. Root, Bobby Yan, Peiming Liu, Christophe Gyurgyik et al.OOPSLA 2024 · 3 citations
- SpV8: Pursuing Optimal Vectorization and Regular Computation Pattern in SpMVChenyang Li, Tian Xia, Wenzhe Zhao, Nanning Zheng et al.DAC 2021 · 17 citations
