arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.05154cs.ARcs.PL
收藏

基于MLIR的高效FPGA加速器生成优化框架

An Optimizing Framework on MLIR for Efficient FPGA-based Accelerator Generation

Weichuang Zhang, Jieru Zhao, Guan Shen, Quan Chen, Chen Chen, Minyi Guo

AI总结:

本文提出构建于MLIR的FPGA加速器优化框架POM,通过引入三层IR、集成多面体模型进行循环变换,并提供DSL与自动DSE引擎,相比现有技术实现了显著的性能加速。

摘要:

随着在有限的资源和功耗预算下对计算能力需求的不断增加,将应用部署到如FPGA等定制加速器上变得至关重要。然而,FPGA编程并非易事。尽管现有的高层次综合(HLS)工具在一定程度上提高了生产力,但它们在支持充分的FPGA导向优化方面的范围和能力有限。本文聚焦于基于FPGA的加速器,提出了POM,一个构建在多级中间表示(MLIR)上的优化框架。POM具有几个展示其性能优化范围和能力的特性。首先,大多数HLS工具完全依赖单一层级的IR来执行所有优化,这给IR引入了过多的信息,使调试成为一项艰巨的任务。相比之下,POM引入了三层IR在合适的抽象层级执行操作,简化了实现和调试过程,并展现出更好的灵活性、可扩展性和系统性。其次,POM将多面体模型集成到MLIR中,实现了高级依赖分析和各种FPGA导向的循环变换。通过用整数集和映射表示嵌套循环,可以通过对多面体语义的操作方便地进行循环变换。最后,为了进一步减轻设计工作量,POM拥有一个用户友好的编程接口(DSL),允许简洁地描述计算,并包含丰富的调度原语集合。提供了一个自动设计空间探索(DSE)引擎,以高效搜索高性能优化方案并自动生成优化的加速器。实验结果表明,与最先进的技术相比,POM在典型基准套件上实现了6.46倍的平均加速,在实际应用上实现了6.06倍的平均加速。

英文摘要:

With the increasing demand for computing capability given limited resource and power budgets, it is crucial to deploy applications to customized accelerators like FPGAs. However, FPGA programming is non-trivial. Although existing high-level synthesis (HLS) tools improve productivity to a certain extent, they are limited in scope and capability to support sufficient FPGA-oriented optimizations. This paper focuses on FPGA-based accelerators and proposes POM, an optimizing framework built on multi-level intermediate representation (MLIR). POM has several features which demonstrate its scope and capability of performance optimization. First, most HLS tools depend exclusively on a single-level IR to perform all the optimizations, introducing excessive information into the IR and making debugging an arduous task. In contrast, POM introduces three layers of IR to perform operations at suitable abstraction levels, streamlining the implementation and debugging process and exhibiting better flexibility, extensibility, and systematicness. Second, POM integrates the polyhedral model into MLIR, enabling advanced dependence analysis and various FPGA-oriented loop transformations. By representing nested loops with integer sets and maps, loop transformations can be conducted conveniently through manipulations on polyhedral semantics. Finally, to further relieve design effort, POM has a user-friendly programming interface (DSL) that allows a concise description of computation and includes a rich collection of scheduling primitives. An automatic design space exploration (DSE) engine is provided to search for high-performance optimization schemes efficiently and generate optimized accelerators automatically. Experimental results show that POM achieves a $6.46\times$ average speedup on typical benchmark suites and a $6.06\times$ average speedup on real-world applications compared to the state-of-the-art.

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

↑