Format abstraction for sparse tensor algebra compilers

Author:

Chou Stephen1,Kjolstad Fredrik1,Amarasinghe Saman1

Affiliation:

1. Massachusetts Institute of Technology, USA

Abstract

This paper shows how to build a sparse tensor algebra compiler that is agnostic to tensor formats (data layouts). We develop an interface that describes formats in terms of their capabilities and properties, and show how to build a modular code generator where new formats can be added as plugins. We then describe six implementations of the interface that compose to form the dense, CSR/CSF, COO, DIA, ELL, and HASH tensor formats and countless variants thereof. With these implementations at hand, our code generator can generate code to compute any tensor algebra expression on any combination of the aforementioned formats. To demonstrate our technique, we have implemented it in the taco tensor algebra compiler. Our modular code generator design makes it simple to add support for new tensor formats, and the performance of the generated code is competitive with hand-optimized implementations. Furthermore, by extending taco to support a wider range of formats specialized for different application and data characteristics, we can improve end-user application performance. For example, if input data is provided in the COO format, our technique allows computing a single matrix-vector multiplication directly with the data in COO, which is up to 3.6× faster than by first converting the data to CSR.

Funder

U.S. Department of Energy

Toyota Research Institute

National Science Foundation

Defense Advanced Research Projects Agency

Application Driving Architectures Research Center

Publisher

Association for Computing Machinery (ACM)

Subject

Safety, Risk, Reliability and Quality,Software

Reference54 articles.

1. Karin A. Remington. 1996. NIST Sparse BLAS User’s Guide. (08 1996). Karin A. Remington. 1996. NIST Sparse BLAS User’s Guide. (08 1996).

2. Tensor Decompositions for Learning Latent Variable Models;Anandkumar Animashree;J. Mach. Learn. Res. 15, Article 1,2014

3. Gilad Arnold. 2011. Data-Parallel Language for Correct and Efficient Sparse Matrix Codes. Ph.D. Dissertation. University of California Berkeley. Gilad Arnold. 2011. Data-Parallel Language for Correct and Efficient Sparse Matrix Codes. Ph.D. Dissertation. University of California Berkeley.

4. Specifying and verifying sparse matrix codes

5. Automatic code generation for many-body electronic structure methods: the tensor contraction engine‡‡

Cited by 72 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. TeAAL: A Declarative Framework for Modeling Sparse Tensor Accelerators;56th Annual IEEE/ACM International Symposium on Microarchitecture;2023-10-28

2. Spatula: A Hardware Accelerator for Sparse Matrix Factorization;56th Annual IEEE/ACM International Symposium on Microarchitecture;2023-10-28

3. A Tensor Marshaling Unit for Sparse Tensor Algebra on General-Purpose Processors;56th Annual IEEE/ACM International Symposium on Microarchitecture;2023-10-28

4. Compiling Structured Tensor Algebra;Proceedings of the ACM on Programming Languages;2023-10-16

5. Optimizing Compression Schemes for Parallel Sparse Tensor Algebra;2023 IEEE High Performance Extreme Computing Conference (HPEC);2023-09-25

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3