跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 数学软件

arXiv:2001.02609 (cs)
[提交于 2020年6月30日 (v1),最后修订于 2020年6月30日 (此版本, v3)]

标题:Automatic Generation of Efficient Sparse Tensor Format Conversion Routines

作者:Stephen Chou, Fredrik Kjolstad, Saman Amarasinghe
查看论文《Automatic Generation of Efficient Sparse Tensor Format Conversion Routines》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:This paper shows how to generate code that efficiently converts sparse tensors between disparate storage formats (data layouts) such as CSR, DIA, ELL, and many others. We decompose sparse tensor conversion into three logical phases: coordinate remapping, analysis, and assembly. We then develop a language that precisely describes how different formats group together and order a tensor's nonzeros in memory. This lets a compiler emit code that performs complex remappings of nonzeros when converting between formats. We also develop a query language that can extract statistics about sparse tensors, and we show how to emit efficient analysis code that computes such queries. Finally, we define an abstract interface that captures how data structures for storing a tensor can be efficiently assembled given specific statistics about the tensor. Disparate formats can implement this common interface, thus letting a compiler emit optimized sparse tensor conversion code for arbitrary combinations of many formats without hard-coding for any specific combination. Our evaluation shows that the technique generates sparse tensor conversion routines with performance between 1.00 and 2.01$\times$ that of hand-optimized versions in SPARSKIT and Intel MKL, two popular sparse linear algebra libraries. And by emitting code that avoids materializing temporaries, which both libraries need for many combinations of source and target formats, our technique outperforms those libraries by 1.78 to 4.01$\times$ for CSC/COO to DIA/ELL conversion.
评论: Presented at PLDI 2020
主题: 数学软件 (cs.MS); 程序设计语言 (cs.PL)
引用方式: arXiv:2001.02609 [cs.MS]
  (或者 arXiv:2001.02609v3 [cs.MS] 对于此版本)
  https://doi.org/10.48550/arXiv.2001.02609
相关 DOI: https://doi.org/10.1145/3385412.3385963

提交历史

来自:Stephen Chou
[v3] 2020年6月30日 星期二 02:09:40 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs
< 上一篇   |   下一篇 >
最新 | 近期 | 2020-06
切换浏览方式为:
cs.MS
cs.PL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站