arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2201.06848cs.LGcs.AR
收藏

使用GNN的高级综合性能预测:基准测试,建模和推进

High-Level Synthesis Performance Prediction using GNNs: Benchmarking, Modeling, and Advancing

University of California, Santa Barbara(加州大学圣巴巴拉分校);Nankai University(南开大学);Purdue University(普渡大学);Georgia Institute of Technology(佐治亚理工学院)

Nan Wu, Hang Yang, Yuan Xie, Pan Li, Cong Hao

摘要:

敏捷硬件开发需要从早期设计阶段就进行快速准确的电路质量评估。现有的高层次综合(HLS)性能预测工作通常需要在综合过程之后进行大量的特征工程。为了从尽可能早的设计阶段加快电路评估,我们提出了一种快速准确的性能建模,利用图神经网络(GNNs)的表示能力,表示C/C ++程序作为图形。这项工作的贡献是三方面的。首先,我们建立了一个标准的基准测试包含40k C合成程序,其中包括合成程序和三套真实世界的HLS基准测试。每个程序都在FPGA上实现,以生成地面实况性能指标。其次,我们在图上正式制定了HLS性能预测问题,并提出了使用GNN的多种建模策略,这些策略利用了预测及时性(早期/晚期预测)和准确性之间的不同权衡。第三,我们进一步提出了一种新的分层GNN,它不会牺牲及时性,但大大提高了预测精度,显著优于HLS工具。我们对合成和看不见的真实案例程序进行了广泛的评估;我们提出的预测器在资源使用和时序预测方面大大优于HLS高达40倍,优于现有预测器2倍至5倍。

英文摘要:

Agile hardware development requires fast and accurate circuit quality evaluation from early design stages. Existing work of high-level synthesis (HLS) performance prediction usually needs extensive feature engineering after the synthesis process. To expedite circuit evaluation from as earlier design stage as possible, we propose a rapid and accurate performance modeling, exploiting the representation power of graph neural networks (GNNs) by representing C/C++ programs as graphs. The contribution of this work is three-fold. First, we build a standard benchmark containing 40k C synthesizable programs, which includes both synthetic programs and three sets of real-world HLS benchmarks. Each program is implemented on FPGA to generate ground-truth performance metrics. Second, we formally formulate the HLS performance prediction problem on graphs, and propose multiple modeling strategies with GNNs that leverage different trade-offs between prediction timeliness (early/late prediction) and accuracy. Third, we further propose a novel hierarchical GNN that does not sacrifice timeliness but largely improves prediction accuracy, significantly outperforming HLS tools. We apply extensive evaluations for both synthetic and unseen real-case programs; our proposed predictor largely outperforms HLS by up to 40X and excels existing predictors by 2X to 5X in terms of resource usage and timing prediction.

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

↑