arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1803.03797cs.DC
收藏

用HLS实现Laplacian系统的共轭梯度法的高效FPGA

Efficient FPGA Implementation of Conjugate Gradient Methods for Laplacian System using HLS

Sahithi Rampalli, Natasha Sehgal, Ishita Bindlish, Tanya Tyagi, Pawan Kumar

摘要:

在本文中,我们研究了基于FPGA的流水线和超标量设计的两个变种的共轭梯度法求解拉普拉斯方程的离散网格上;第一个版本对应于原来的共轭梯度算法,和第二个版本对应于一个稍微修改的版本相同。在求解偏微分方程的共轭梯度法中,每次迭代都需要进行矩阵向量运算,这些运算可以在网格上实现为5点模板运算,而不需要显式构造矩阵。我们表明,一个流水线和超标量的设计,使用高层次的C语言编写的合成导致这两种方法的lasting显着减少。当比较这两者时,我们发现,在相同的超标量程度下,后者的延迟大约是前者的两倍。CG的新变体的这些延迟的减少是由于网格的子域上的模板操作的并行实现,并且由于这些模板操作与点积操作的重叠。在超标量设计中,域需要划分,边界数据需要复制,这需要填充。在1D分区中,填充延迟随着分区数量的增加而增加。对于流数据流模型,我们提出了一种新的遍历网格的2D域分解,导致2倍减少延迟成本与填充相比,1D分区。对于维数为$10000 \times 10000.$的线性系统,我们的实现比软件实现快大约10倍

英文摘要:

In this paper, we study FPGA based pipelined and superscalar design of two variants of conjugate gradient methods for solving Laplacian equation on a discrete grid; the first version corresponds to the original conjugate gradient algorithm, and the second version corresponds to a slightly modified version of the same. In conjugate gradient method to solve partial differential equations, matrix vector operations are required in each iteration; these operations can be implemented as 5 point stencil operations on the grid without explicitely constructing the matrix. We show that a pipelined and superscalar design using high level synthesis written in C language leads to a significant reduction in latencies for both methods. When comparing these two, we show that the later has roughly two times lower latency than the former given the same degree of superscalarity. These reductions in latencies for the newer variant of CG is due to parallel implementations of stencil operation on subdomains of the grid, and dut to overlap of these stencil operations with dot product operations. In a superscalar design, domain needs to be partitioned, and boundary data needs to be copied, which requires padding. In 1D partition, the padding latency increases as the number of partitions increase. For a streaming data flow model, we propose a novel traversal of the grid for 2D domain decomposition that leads to 2 times reduction in latency cost involved with padding compared to 1D partitions. Our implementation is roughly 10 times faster than software implementation for linear system of dimension $10000 \times 10000.$

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

↑