动态稀疏张量代数编译
Dynamic Sparse Tensor Algebra Compilation
摘要:
本文展示了如何生成高效的张量代数代码,计算动态稀疏张量,这些张量具有随时间演变的稀疏结构。我们提出了一种语言,精确地指定递归的,基于指针的数据结构,我们展示了这种语言可以表达广泛的动态数据结构,支持有效的修改,如链表,二叉搜索树和B树。然后,我们描述了在给定这种数据结构的高级规范的情况下,编译器可以如何生成代码以有效地对存储在上述数据结构中的动态稀疏张量进行覆盖和计算。此外,我们定义了一个抽象的接口,捕捉如何非零可以插入到动态数据结构,我们展示了这种抽象如何引导编译器发出有效的代码,存储稀疏张量代数计算的结果在动态数据结构。我们评估我们的技术,发现它产生高效的动态稀疏张量代数内核。我们的技术发出的代码计算PageRank算法的主要核心是1.05 $\times$一样快的Aspen,一个国家的最先进的动态图形处理框架。此外,我们的技术优于PAM,一个并行有序(键值)映射库,由7.40 $\times$时,用于实现元素的动态稀疏矩阵添加到一个静态稀疏矩阵。
英文摘要:
This paper shows how to generate efficient tensor algebra code that compute on dynamic sparse tensors, which have sparsity structures that evolve over time. We propose a language for precisely specifying recursive, pointer-based data structures, and we show how this language can express a wide range of dynamic data structures that support efficient modification, such as linked lists, binary search trees, and B-trees. We then describe how, given high-level specifications of such data structures, a compiler can generate code to efficiently iterate over and compute with dynamic sparse tensors that are stored in the aforementioned data structures. Furthermore, we define an abstract interface that captures how nonzeros can be inserted into dynamic data structures, and we show how this abstraction guides a compiler to emit efficient code that store the results of sparse tensor algebra computations in dynamic data structures. We evaluate our technique and find that it generates efficient dynamic sparse tensor algebra kernels. Code that our technique emits to compute the main kernel of the PageRank algorithm is 1.05$\times$ as fast as Aspen, a state-of-the-art dynamic graph processing framework. Furthermore, our technique outperforms PAM, a parallel ordered (key-value) maps library, by 7.40$\times$ when used to implement element-wise addition of a dynamic sparse matrix to a static sparse matrix.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。