arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.06234cs.DCcs.NEcs.PF
收藏

多核和众核系统中线性簇评估算法的优化

Optimizing the Linear Fascicle Evaluation Algorithm for Multi-Core and Many-Core Systems

Karan Aggarwal, Uday Bondhugula

摘要:

稀疏矩阵向量乘法(SpMV)操作通常用于各种科学应用中。SpMV操作的性能通常取决于利用矩阵中的规律性模式。已经提出了各种表示来最小化由所涉及的不规则存储器访问模式引起的内存带宽瓶颈。在最近的表示技术中,张量分解是一种流行的用于非常大但稀疏矩阵的方法。在稀疏张量分解之后,新的表示涉及间接访问,这使得针对多核和GPU进行优化变得具有挑战性。计算神经科学算法通常涉及稀疏数据集,同时仍然对它们执行长时间运行的计算。LiFE应用程序是一种流行的神经科学算法,用于修剪大脑连接图。本文采用的数据集涉及稀疏塔克分解(STD),一种广泛使用的张量分解方法。使用这种分解会导致不规则的数组引用,从而很难针对CPU和GPU进行优化。LiFE算法的最新代码表明,其SpMV操作是性能和扩展的关键瓶颈。在这项工作中,我们首先提出了目标无关的优化来优化这些SpMV操作,然后是CPU和GPU系统的目标相关的优化。目标无关技术包括:(1)标准编译器优化,(2)数据重构方法,(3)在线程间划分计算的方法。然后,我们提出了CPU和GPU的优化,以利用特定于平台的速度。我们高度优化的CPU代码在16核英特尔至强(基于Skylake)系统上运行时,比原始顺序CPU代码获得了27.12倍的加速,而我们优化的GPU代码在NVIDIA GeForce RTX 2080 Ti GPU上运行时,比参考优化的GPU代码版本获得了5.2倍的加速。

英文摘要:

Sparse matrix-vector multiplication (SpMV) operations are commonly used in various scientific applications. The performance of the SpMV operation often depends on exploiting regularity patterns in the matrix. Various representations have been proposed to minimize the memory bandwidth bottleneck arising from the irregular memory access pattern involved. Among recent representation techniques, tensor decomposition is a popular one used for very large but sparse matrices. Post sparse-tensor decomposition, the new representation involves indirect accesses, making it challenging to optimize for multi-cores and GPUs. Computational neuroscience algorithms often involve sparse datasets while still performing long-running computations on them. The LiFE application is a popular neuroscience algorithm used for pruning brain connectivity graphs. The datasets employed herein involve the Sparse Tucker Decomposition (STD), a widely used tensor decomposition method. Using this decomposition leads to irregular array references, making it very difficult to optimize for both CPUs and GPUs. Recent codes of the LiFE algorithm show that its SpMV operations are the key bottleneck for performance and scaling. In this work, we first propose target-independent optimizations to optimize these SpMV operations, followed by target-dependent optimizations for CPU and GPU systems. The target-independent techniques include: (1) standard compiler optimizations, (2) data restructuring methods, and (3) methods to partition computations among threads. Then we present the optimizations for CPUs and GPUs to exploit platform-specific speed. Our highly optimized CPU code obtain a speedup of 27.12x over the original sequential CPU code running on 16-core Intel Xeon (Skylake-based) system, and our optimized GPU code achieves a speedup of 5.2x over a reference optimized GPU code version on NVIDIA's GeForce RTX 2080 Ti GPU.

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

↑