TTC:一个高性能的张量转置算法
TTC: A high-performance Compiler for Tensor Transpositions
摘要:
我们提出TTC,一个开源的多维张量转置并行编译器。为了生成高性能的C++代码,TTC探索了许多优化,包括软件预取、阻塞、循环重新排序和显式向量化。为了在一系列可能的用例中评估多维换位的性能,我们还发布了一个基准测试,涵盖了多达六个维度的任意换位。性能结果表明,TTC生成的例程在Intel Haswell和AMD Steamroller架构上都达到了接近峰值的内存带宽,并在现代编译器上获得了显着的性能提升。通过实现一组修剪算法,TTC允许用户限制潜在解的数量;当处理高维张量时,该选项特别有用,因为搜索空间可能会变得非常大。实验表明,当只考虑100个潜在的解决方案,所得到的性能是约99%的穷举搜索。
英文摘要:
We present TTC, an open-source parallel compiler for multidimensional tensor transpositions. In order to generate high-performance C++ code, TTC explores a number of optimizations, including software prefetching, blocking, loop-reordering, and explicit vectorization. To evaluate the performance of multidimensional transpositions across a range of possible use-cases, we also release a benchmark covering arbitrary transpositions of up to six dimensions. Performance results show that the routines generated by TTC achieve close to peak memory bandwidth on both the Intel Haswell and the AMD Steamroller architectures, and yield significant performance gains over modern compilers. By implementing a set of pruning heuristics, TTC allows users to limit the number of potential solutions; this option is especially useful when dealing with high-dimensional tensors, as the search space might become prohibitively large. Experiments indicate that when only 100 potential solutions are considered, the resulting performance is about 99% of that achieved with exhaustive search.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。