一切都与数据移动有关:优化FPGA数据访问以提高性能
It's all about data movement: Optimising FPGA data access to boost performance
摘要:
使用可重构计算,特别是FPGA来加速计算内核,有可能对科学代码和HPC社区产生巨大的好处。然而,虽然FPGA工具的最新进展使得编程可重构架构的物理行为变得更加容易,但为了获得良好的性能,整个算法必须重新思考并以一种简单的方式进行重铸。降低所有计算设备的数据移动成本至关重要,在本文中,我们将探讨最适合FPGA的技术。我们这样做,通过描述现有的FPGA实现的大气模型的平流方案的优化。通过采用比CPU上运行慢四倍以上的FPGA代码,主要是由于数据移动开销,我们描述了所采用的分析和优化策略,以显着减少运行时间,并将FPGA内核的性能提高到更实用的水平,以供实际使用。这项工作的结果是一组技术,步骤和经验教训,我们发现显着提高基于FPGA的HPC代码的性能,其他人可以在自己的代码中采用,以实现类似的结果。
英文摘要:
The use of reconfigurable computing, and FPGAs in particular, to accelerate computational kernels has the potential to be of great benefit to scientific codes and the HPC community in general. However, whilst recent advanced in FPGA tooling have made the physical act of programming reconfigurable architectures much more accessible, in order to gain good performance the entire algorithm must be rethought and recast in a dataflow style. Reducing the cost of data movement for all computing devices is critically important, and in this paper we explore the most appropriate techniques for FPGAs. We do this by describing the optimisation of an existing FPGA implementation of an atmospheric model's advection scheme. By taking an FPGA code that was over four times slower than running on the CPU, mainly due to data movement overhead, we describe the profiling and optimisation strategies adopted to significantly reduce the runtime and bring the performance of our FPGA kernels to a much more practical level for real-world use. The result of this work is a set of techniques, steps, and lessons learnt that we have found significantly improves the performance of FPGA based HPC codes and that others can adopt in their own codes to achieve similar results.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。