arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1807.01340cs.ARcs.DCcs.PF
收藏

尽最大努力进行FPGA编程:几步就能走得很远

Best-Effort FPGA Programming: A Few Steps Can Go a Long Way

Jason Cong, Zhenman Fang, Yuchen Hao, Peng Wei, Cody Hao Yu, Chen Zhang, Peipei Zhou

摘要:

基于FPGA的异构体系结构为程序员提供了自定义硬件加速器的能力,以灵活地加速许多工作负载。尽管如此,这些优势是以牺牲可编程性为代价的。FPGA厂商和研究人员试图通过高级综合(HLS)技术来提高可编程性,该技术可以直接从高级语言描述生成硬件电路。然而,通过阅读最近的出版物FPGA设计使用HLS,人们往往得到的印象是,FPGA编程仍然很难,因为它离开程序员探索一个非常大的设计空间与许多可能的组合HLS优化策略。在本文中,我们提出了两个重要的意见和贡献。首先,我们展示了一个相当令人惊讶的结果:FPGA编程可以很容易地遵循一个简单的尽最大努力的指导方针,使用HLS的五个细化步骤。我们表明,对于MachSuite的广泛的加速器基准测试,提出的尽力而为的指导方针将FPGA加速器性能提高了42- 29,030倍。与基准CPU性能相比,FPGA加速器性能从平均292.5倍减速提高到平均34.4倍加速。此外,我们表明,在尽最大努力的指导方针,包括显式的数据缓存,定制的流水线,处理元素复制,计算/通信重叠和暂存器重组的细化步骤,以及对应的多核CPU编程的最佳实践指南。虽然我们的尽力而为准则可能并不总是导致最佳解决方案,但它大大简化了FPGA编程工作,并将极大地支持软件编程社区广泛采用基于FPGA的加速。

英文摘要:

FPGA-based heterogeneous architectures provide programmers with the ability to customize their hardware accelerators for flexible acceleration of many workloads. Nonetheless, such advantages come at the cost of sacrificing programmability. FPGA vendors and researchers attempt to improve the programmability through high-level synthesis (HLS) technologies that can directly generate hardware circuits from high-level language descriptions. However, reading through recent publications on FPGA designs using HLS, one often gets the impression that FPGA programming is still hard in that it leaves programmers to explore a very large design space with many possible combinations of HLS optimization strategies. In this paper we make two important observations and contributions. First, we demonstrate a rather surprising result: FPGA programming can be made easy by following a simple best-effort guideline of five refinement steps using HLS. We show that for a broad class of accelerator benchmarks from MachSuite, the proposed best-effort guideline improves the FPGA accelerator performance by 42-29,030x. Compared to the baseline CPU performance, the FPGA accelerator performance is improved from an average 292.5x slowdown to an average 34.4x speedup. Moreover, we show that the refinement steps in the best-effort guideline, consisting of explicit data caching, customized pipelining, processing element duplication, computation/communication overlapping and scratchpad reorganization, correspond well to the best practice guidelines for multicore CPU programming. Although our best-effort guideline may not always lead to the optimal solution, it substantially simplifies the FPGA programming effort, and will greatly support the wide adoption of FPGA-based acceleration by the software programming community.

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

↑