Lune

PLDI2024顶会

SpEQ: Translation of Sparse Codes using Equivalences

Avery Laird, Bangtian Liu, Nikolaj S. Bjørner, Maryam Mehri Dehnavi

摘要

We present SpEQ, a quick and correct strategy for detecting semantics in sparse codes and enabling automatic translation to high-performance library calls or domain-specific languages (DSLs). When sparse linear algebra codes contain implicit preconditions about how data is stored that hamper direct translation, SpEQ identifies the high-level computation along with storage details and related preconditions. A run-time check guards the translation and ensures that required preconditions are met.

We implement SpEQ using the LLVM framework, the Z3 solver, and egglog library [17,28,56] and correctly translate sparse linear algebra codes into two high-performance libraries, NVIDIA cuSPARSE and Intel MKL, and OpenMP (OMP) [6,12,36]. We evaluate SpEQ on ten diverse benchmarks against two state-of-the-art translation tools. SpEQ achieves geometric mean speedups of 3.25×, 5.09×, and 8.04× on OpenMP, MKL, and cuSPARSE backends, respectively. SpEQ is the only tool that can guarantee the correct translation of sparse computations.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial Optimization 引用了 SmoothE: Differentiable E-Graph Extraction
  • HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial Optimization 引用了 egg: Fast and extensible equality saturation
  • Better Together: Unifying Datalog and Equality Saturation 引用了 egg: Fast and extensible equality saturation
  • SmoothE: Differentiable E-Graph Extraction 引用了 Better Together: Unifying Datalog and Equality Saturation
  • SmoothE: Differentiable E-Graph Extraction 引用了 egg: Fast and extensible equality saturation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial OptimizationHongzheng Chen, Yingheng Wang, Yaohui Cai, Hins Hu 等ICLR 2026 · 26 次引用
  2. SmoothE: Differentiable E-Graph ExtractionYaohui Cai, Kaixin Yang, Chenhui Deng, Cunxi Yu 等ASPLOS 2025 · 12 次引用
  3. Guided Tensor LiftingYixuan Li, José Wesley de Souza Magalhães, Alexander Brauckmann, Michael F. P. O'Boyle 等PLDI 2025 · 4 次引用
  4. GALA: A High Performance Graph Neural Network Acceleration LAnguage and CompilerDamitha Lenadora, Nikhil Jayakumar, Chamika Sudusinghe, Charith MendisOOPSLA 2025 · 1 次引用

它引用的 Paper3

  1. egg: Fast and extensible equality saturationMax Willsey, Chandrakana Nandi, Yisu Remy Wang, Oliver Flatt 等POPL 2021 · 170 次引用
  2. Better Together: Unifying Datalog and Equality SaturationYihong Zhang, Yisu Remy Wang, Oliver Flatt, David Cao 等PLDI 2023 · 38 次引用
  3. Task parallel assembly language for uncompromising parallelismMike Rainey, Ryan R. Newton, Kyle C. Hale, Nikos Hardavellas 等PLDI 2021 · 9 次引用

相关 Paper

  1. Automatic generation of efficient sparse tensor format conversion routinesStephen Chou, Fredrik Kjolstad, Saman P. AmarasinghePLDI 2020 · 26 次引用
  2. Mastering Sparse CUDA Generation through Pretrained Models and Deep Reinforcement LearningYaoyu Wang, Hankun Dai, Zhidong Yang, Junmin Xiao 等ICLR 2026 · 476 次引用
  3. UniSparse: An Intermediate Language for General Sparse Format CustomizationJie Liu, Zhongyuan Zhao, Zijian Ding, Benjamin Brock 等OOPSLA 2024 · 7 次引用
  4. Speeding up SMT Solving via Compiler OptimizationBenjamin Mikek, Qirun ZhangFSE 2023 · 11 次引用
  5. Runtime Composition of Iterations for Fusing Loop-carried Sparse DependenceKazem Cheshmi, Michelle Strout, Maryam Mehri DehnaviSC 2023 · 9 次引用
黄昏的海面,两侧是细线勾勒的悬崖