用于非结构计算流体动力学模拟的FPGA缓存稀疏矩阵向量积(SpMV)
An FPGA cached sparse matrix vector product (SpMV) for unstructured computational fluid dynamics simulations
摘要:
现场可编程门阵列生成算法特定的架构,提高代码的FLOP每瓦比。由于促进其编程的新工具(例如OmpSs)的兴起,此类装置重新获得兴趣。计算流体动力学社区一直在研究新的架构,可以提高其算法的性能。通常,这些算法具有较低的运算强度,并且仅达到峰值性能的一小部分。稀疏矩阵向量相乘是非结构化仿真中最耗时的运算之一。矩阵的稀疏模式决定了乘法向量的间接内存访问。这种数据路径很难预测,使得传统的实现失败。在这项工作中,我们提出了一个FPGA架构,最大限度地提高了向量的可重用性,通过引入一个类似缓存的架构。高速缓存被实现为在需要时维护BRAM向量分量的循环列表。在这种策略下,与算法的简单实现相比,获得了高达16倍的加速。
英文摘要:
Field Programmable Gate Arrays generate algorithmic specific architectures that improve the code's FLOP per watt ratio. Such devices are re-gaining interest due to the rise of new tools that facilitate their programming, such as OmpSs. The computational fluid dynamics community is always investigating new architectures that can improve its algorithm's performance. Commonly, those algorithms have a low arithmetic intensity and only reach a small percentage of the peak performance. The sparse matrix-vector multiplication is one of the most time-consuming operations on unstructured simulations. The matrix's sparsity pattern determines the indirect memory accesses of the multiplying vector. This data path is hard to predict, making traditional implementations fail. In this work, we present an FPGA architecture that maximizes the vector's re-usability by introducing a cache-like architecture. The cache is implemented as a circular list that maintains the BRAM vector components while needed. Following this strategy, up to 16 times of acceleration is obtained compared to a naive implementation of the algorithm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。