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.
翻译:高级合成(HLS)绩效预测的现有工作通常需要在综合过程之后进行广泛的地貌工程。为了从尽可能早的设计阶段加快电路评估,我们建议采用快速和准确的性能模型,利用图形神经网络(GNN)的表示力,将图形神经网络(GNNs)作为C/C++方案作为图表。这项工作的贡献是三重。首先,我们建立一个标准基准,其中包括40k C合成可操作程序,其中包括合成方案和三套现实世界HLS基准。每个方案都是在FPGA上实施的,以产生地面真相性能指标。第二,我们正式在图表上制定HLS性能预测问题,并提议与GNNS(GNs)一起采用多种模式战略,利用预测及时性(早/晚预测)和准确性之间的不同权衡。第三,我们进一步提议一个新的等级性能全球NNNSN不会牺牲及时性,但在很大程度上提高预测准确性,大大超过HLS工具。我们对合成和不可见的真证程序都进行了广泛的评价;我们提议的预测数在40X模型中将HLSlex和HLS(HLS)的预测用率。