arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2110.00186cs.MScs.PL
收藏

生成对称张量计算代码的尝试

An Attempt to Generate Code for Symmetric Tensor Computations

Jessica Shi, Stephen Chou, Fredrik Kjolstad, Saman Amarasinghe

摘要:

本文描述了一种尝试,开发一个基于编译器的方法计算对称张量。给定一个计算和它的输入张量的对称性,我们推导出的存储方案,消除冗余下的随机访问公式;构造中间表示来描述循环结构;并将这些信息,使用塔科张量代数编译器,转化为代码。虽然我们实现了一个框架,推理一个相当一般的对称计算类,得到的代码是不执行时的对称性是不对齐的。

英文摘要:

This document describes an attempt to develop a compiler-based approach for computations with symmetric tensors. Given a computation and the symmetries of its input tensors, we derive formulas for random access under a storage scheme that eliminates redundancies; construct intermediate representations to describe the loop structure; and translate this information, using the taco tensor algebra compiler, into code. While we achieve a framework for reasoning about a fairly general class of symmetric computations, the resulting code is not performant when the symmetries are misaligned.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑