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

基于高级综合的FPGA上避免矩阵乘法的灵活通信

Flexible Communication Avoiding Matrix Multiplication on FPGA with High-Level Synthesis

Johannes de Fine Licht, Grzegorz Kwasniewski, Torsten Hoefler

摘要:

在现代计算系统中,数据移动是影响性能和能量的主要因素。因此,许多算法已经被开发出来,以最大限度地减少常见的计算模式的I/O操作的数量。矩阵乘法也不例外,并且对于共享和分布式存储器系统都已经证明和实现了下限。可重构硬件平台是I/O最小化算法的一个有利可图的目标,因为它们为程序员提供了对存储器访问的完全控制。虽然在固定架构的背景下开发的边界仍然适用于这些平台,但其计算和内存资源的空间分布性质需要一种分散的方法来优化算法,以实现最大的硬件利用率。我们提出了一个模型来优化FPGA平台的矩阵乘法,同时以最大的性能和最小的片外数据移动为目标,在硬件设置的约束。我们映射到一个具体的架构模型,使用一个高层次的综合工具,保持高层次的抽象,使我们能够支持任意数据类型,并使可维护性和跨FPGA器件的可移植性。从我们的架构生成的内核在实践中提供了有竞争力的性能,可扩展的计算和内存资源。我们提供我们的设计作为一个开源项目,以鼓励可重构硬件平台上的线性代数和I/O最小化算法的开放式开发。

英文摘要:

Data movement is the dominating factor affecting performance and energy in modern computing systems. Consequently, many algorithms have been developed to minimize the number of I/O operations for common computing patterns. Matrix multiplication is no exception, and lower bounds have been proven and implemented both for shared and distributed memory systems. Reconfigurable hardware platforms are a lucrative target for I/O minimizing algorithms, as they offer full control of memory accesses to the programmer. While bounds developed in the context of fixed architectures still apply to these platforms, the spatially distributed nature of their computational and memory resources requires a decentralized approach to optimize algorithms for maximum hardware utilization. We present a model to optimize matrix multiplication for FPGA platforms, simultaneously targeting maximum performance and minimum off-chip data movement, within constraints set by the hardware. We map the model to a concrete architecture using a high-level synthesis tool, maintaining a high level of abstraction, allowing us to support arbitrary data types, and enables maintainability and portability across FPGA devices. Kernels generated from our architecture are shown to offer competitive performance in practice, scaling with both compute and memory resources. We offer our design as an open source project to encourage the open development of linear algebra and I/O minimizing algorithms on reconfigurable hardware platforms.

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

↑