arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.08696cs.ARcs.AIcs.LG
收藏

基于GNN的高层次综合中从源到布线后QoR的分层预测

Hierarchical Source-to-Post-Route QoR Prediction in High-Level Synthesis with GNNs

Shanghai Jiao Tong University(上海交通大学);Sun Yat-sen University(中山大学)

Mingzhe Gao, Jieru Zhao, Zhe Lin, Minyi Guo

AI总结:

本文提出一种面向FPGA HLS的分层GNN方法,直接从C/C++源码预测布线后QoR,预测误差低于10%,并将设计空间探索时间缩短至数十分钟、平均ADRS降至6.91%。

摘要:

高层次综合(HLS)通过避免RTL编程显著加快了硬件设计过程。然而,当在优化过程中考虑布线后结果质量(QoR)时,HLS的周转时间会显著增加。为了解决这一问题,我们提出了一种面向FPGA HLS的分层布线后QoR预测方法,其特点包括:(1)一种直接从C/C++程序估计延迟和布线后资源使用情况的建模流程;(2)一种图构建方法,能够有效表示源代码的控制数据流图以及HLS编译指示的影响;(3)一种分层GNN训练和预测方法,能够捕捉循环层次结构的影响。实验结果表明,我们的方法在不同类型的QoR指标上呈现小于10%的预测误差,与最先进的GNN方法相比获得了巨大改进。通过采用我们提出的方法,HLS中设计空间探索的运行时间缩短到数十分钟,并且所达到的平均ADRS降低到6.91%。

英文摘要:

High-level synthesis (HLS) notably speeds up the hardware design process by avoiding RTL programming. However, the turnaround time of HLS increases significantly when post-route quality of results (QoR) are considered during optimization. To tackle this issue, we propose a hierarchical post-route QoR prediction approach for FPGA HLS, which features: (1) a modeling flow that directly estimates latency and post-route resource usage from C/C++ programs; (2) a graph construction method that effectively represents the control and data flow graph of source code and effects of HLS pragmas; and (3) a hierarchical GNN training and prediction method capable of capturing the impact of loop hierarchies. Experimental results show that our method presents a prediction error of less than 10% for different types of QoR metrics, which gains tremendous improvement compared with the state-of-the-art GNN methods. By adopting our proposed methodology, the runtime for design space exploration in HLS is shortened to tens of minutes and the achieved ADRS is reduced to 6.91% on average.

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

↑