张量分解的性能可移植性分析
Analyzing the Performance Portability of Tensor Decomposition
AI总结:
本文通过压力点分析与屋顶线建模定位SparTen中CP-APR MU算法的性能瓶颈,发现矩阵计算Φ(n)是关键瓶颈,并利用Kokkos参数调优在CPU和GPU上分别实现2.25倍和1.70倍加速,验证了Kokkos对数据密集型操作的良好性能可移植性。
摘要:
我们采用压力点分析和屋顶线建模来识别性能瓶颈,并确定 SparTen 软件库中规范多线性交替泊松回归乘法更新(CP-APR MU)算法性能的上限。我们的分析表明,一个特定的矩阵计算 $Φ^{(n)}$ 是 SparTen CP-APR MU 实现中的关键性能瓶颈。此外,我们发现原子操作并不是关键瓶颈,而更高的缓存重用可以带来不可忽视的性能提升。我们还利用 Kokkos 库并行策略参数的网格搜索,在 CPU 上使 $Φ^{(n)}$ 计算相对于 SparTen 默认值实现了 2.25 倍的平均加速,在 GPU 上实现了 1.70 倍的平均加速。我们通过将 STREAM 基准测试以及来自并行稀疏张量算法(PASTA)基准测试套件的矩阵化张量乘 Khatri-Rao 积(MTTKRP)基准测试的 Kokkos 实现与使用供应商库的实现进行比较来结束我们的研究。我们表明,通过单一实现,Kokkos 在广泛的 CPU 和 GPU 系统上对构成张量分解内核的基本操作实现了与手工调优代码相当的性能。总体而言,我们得出结论:Kokkos 对于简单的数据密集型操作表现出良好的性能可移植性,但对于具有更复杂依赖关系和数据访问模式的算法则需要调优。
英文摘要:
We employ pressure point analysis and roofline modeling to identify performance bottlenecks and determine an upper bound on the performance of the Canonical Polyadic Alternating Poisson Regression Multiplicative Update (CP-APR MU) algorithm in the SparTen software library. Our analyses reveal that a particular matrix computation, $Φ^{(n)}$, is the critical performance bottleneck in the SparTen CP-APR MU implementation. Moreover, we find that atomic operations are not a critical bottleneck while higher cache reuse can provide a non-trivial performance improvement. We also utilize grid search on the Kokkos library parallel policy parameters to achieve 2.25x average speedup over the SparTen default for $Φ^{(n)}$ computation on CPU and 1.70x on GPU. We conclude our investigations by comparing Kokkos implementations of the STREAM benchmark and the matricized tensor times Khatri-Rao product (MTTKRP) benchmark from the Parallel Sparse Tensor Algorithm (PASTA) benchmark suite to implementations using vendor libraries. We show that with a single implementation Kokkos achieves performance comparable to hand-tuned code for fundamental operations that make up tensor decomposition kernels on a wide range of CPU and GPU systems. Overall, we conclude that Kokkos demonstrates good performance portability for simple data-intensive operations but requires tuning for algorithms with more complex dependencies and data access patterns.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。