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

流水线共轭梯度法在异构体系结构上的高效执行

Efficient executions of Pipelined Conjugate Gradient Method on Heterogeneous Architectures

Manasi Tiwari, Sathish Vadhiyar

摘要:

预条件共轭梯度法(PCG)被广泛用于求解具有稀疏矩阵的线性方程组。PCG的最新版本,流水线PCG,消除了PCG算法的计算中的依赖性,使得非依赖性计算可以与通信重叠。在本文中,我们提出了三种方法,有效地执行流水线PCG算法的GPU加速异构体系结构。前两种方法通过在CPU内核和GPU上异步执行不同的任务来实现任务并行。第三种方法通过基于性能模型的CPU和GPU之间的工作负载分解来实现数据并行。性能模型考虑了CPU核心和GPU的相对性能,使用一些初始执行并执行2D数据分解。我们还实现了优化策略,如GPU的内核融合和CPU的合并向量操作。我们的方法给出了高达8倍的加速比和平均3倍加速比PCG CPU实现的Paralution和PETSc库。他们还提供了高达5倍的加速比,平均1.45倍的加速比PCG GPU实现的Paralution和PETSc库。第三种方法还提供了一种有效的解决方案,用于解决无法适应GPU内存的问题,并为此类问题提供高达2.5倍的加速。

英文摘要:

The Preconditioned Conjugate Gradient (PCG) method is widely used for solving linear systems of equations with sparse matrices. A recent version of PCG, Pipelined PCG, eliminates the dependencies in the computations of the PCG algorithm so that the non-dependent computations can be overlapped with communication. In this paper, we propose three methods for efficient execution of the Pipelined PCG algorithm on GPU accelerated heterogeneous architectures. The first two methods achieve task-parallelism using asynchronous executions of different tasks on CPU cores and GPU. The third method achieves data parallelism by decomposing the workload between CPU and GPU based on a performance model. The performance model takes into account the relative performance of CPU cores and GPU using some initial executions and performs 2D data decomposition. We also implement optimization strategies like kernel fusion for GPU and merging vector operations for CPU. Our methods give up to 8x speedup and on average 3x speedup over PCG CPU implementation of Paralution and PETSc libraries. They also give up to 5x speedup and on average 1.45x speedup over PCG GPU implementation of Paralution and PETSc libraries. The third method also provides an efficient solution for solving problems that cannot be fit into the GPU memory and gives up to 2.5x speedup for such problems.

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

↑