arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.16465cs.MScs.NAmath.NA
收藏

基于共享内存的结构矩阵分层Jacobi迭代算法

Hierarchical Jacobi Iteration for Structured Matrices on GPUs using Shared Memory

Mohammad Shafaet Islam, Qiqi Wang

摘要:

对物理现象进行建模的高保真科学模拟通常需要求解大型线性方程组,这些方程组是通过某种数值方法对偏微分方程(PDE)进行离散化而得到的。这一步通常需要大量的计算时间来完成,因此在模拟工作中存在瓶颈。有效地求解这些线性系统需要使用具有高计算吞吐量的大规模并行硬件,以及开发尊重这些硬件体系结构的存储层次结构以实现高内存带宽的算法。在本文中,我们提出了一种算法,以加速Jacobi迭代解决结构化问题的图形处理单元(GPU)使用层次化的方法,在片上共享存储器内进行多次迭代,每个周期。采用了区域分解的方式,将问题域划分为多个子域,将子域的数据复制到每个GPU块的共享内存中。Jacobi迭代在每个块的共享内存内部执行,避免了每一步都需要执行昂贵的全局内存访问。我们测试我们的算法的线性系统所产生的离散化的泊松方程在1D和2D,并观察加速收敛,使用我们的共享内存的方法相比,传统的Jacobi实现,只使用全局内存的GPU。我们观察到的x8加速收敛的1D问题和近x6加速在2D的情况下,从使用共享内存相比,传统的GPU方法。

英文摘要:

High fidelity scientific simulations modeling physical phenomena typically require solving large linear systems of equations which result from discretization of a partial differential equation (PDE) by some numerical method. This step often takes a vast amount of computational time to complete, and therefore presents a bottleneck in simulation work. Solving these linear systems efficiently requires the use of massively parallel hardware with high computational throughput, as well as the development of algorithms which respect the memory hierarchy of these hardware architectures to achieve high memory bandwidth. In this paper, we present an algorithm to accelerate Jacobi iteration for solving structured problems on graphics processing units (GPUs) using a hierarchical approach in which multiple iterations are performed within on-chip shared memory every cycle. A domain decomposition style procedure is adopted in which the problem domain is partitioned into subdomains whose data is copied to the shared memory of each GPU block. Jacobi iterations are performed internally within each block's shared memory, avoiding the need to perform expensive global memory accesses every step. We test our algorithm on the linear systems arising from discretization of Poisson's equation in 1D and 2D, and observe speedup in convergence using our shared memory approach compared to a traditional Jacobi implementation which only uses global memory on the GPU. We observe a x8 speedup in convergence in the 1D problem and a nearly x6 speedup in the 2D case from the use of shared memory compared to a conventional GPU approach.

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

↑