arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.09606cs.LGcs.AIcs.AR
收藏

跨模态程序表示学习用于电子设计自动化中的高层次综合

Cross-Modality Program Representation Learning for Electronic Design Automation with High-Level Synthesis

Computer Science UCLA(加州大学洛杉矶分校计算机科学系)

Zongyue Qin, Yunsheng Bai, Atefeh Sohrabizadeh, Zijian Ding, Ziniu Hu, Yizhou Sun, Jason Cong

AI总结:

提出ProgSG模型,深度融合源代码序列与CDFG图模态,结合编译器数据流分析预训练,显著提升HLS设计性能预测精度与设计空间探索效率。

摘要:

近年来,领域专用加速器(DSA)在深度学习、自动驾驶等应用中日益普及。为促进DSA设计,程序员使用高层次综合(HLS)将C/C++编写的高级描述编译为低级硬件描述语言设计,最终在电路上综合出DSA。然而,创建高质量的HLS设计仍需要大量领域知识,尤其是以\textit{pragmas}形式表达的微架构决策。因此,期望借助机器学习自动化此类决策,以预测HLS设计的质量,这需要对由原始代码和pragmas组成的程序有更深入的理解。自然,这些程序可视为序列数据。此外,这些程序可被编译并转换为控制数据流图(CDFG)。但现有工作要么未能利用两种模态,要么以浅层或粗糙的方式结合两者。我们提出ProgSG,一种允许源代码序列模态与图模态以深层和细粒度方式交互的模型。为缓解标注设计的稀缺性,提出了一种基于编译器数据流分析任务套件的预训练方法。实验结果表明,ProgSG在设计性能预测中将RMSE降低了高达22%,并在设计空间探索(DSE)任务中,与HARP和AutoDSE相比,分别识别出平均1.10倍和1.26倍(最高8.17倍和13.31倍)性能提升的设计。

英文摘要:

In recent years, domain-specific accelerators (DSAs) have gained popularity for applications such as deep learning and autonomous driving. To facilitate DSA designs, programmers use high-level synthesis (HLS) to compile a high-level description written in C/C++ into a design with low-level hardware description languages that eventually synthesize DSAs on circuits. However, creating a high-quality HLS design still demands significant domain knowledge, particularly in microarchitecture decisions expressed as \textit{pragmas}. Thus, it is desirable to automate such decisions with the help of machine learning for predicting the quality of HLS designs, requiring a deeper understanding of the program that consists of original code and pragmas. Naturally, these programs can be considered as sequence data. In addition, these programs can be compiled and converted into a control data flow graph (CDFG). But existing works either fail to leverage both modalities or combine the two in shallow or coarse ways. We propose ProgSG, a model that allows interaction between the source code sequence modality and the graph modality in a deep and fine-grained way. To alleviate the scarcity of labeled designs, a pre-training method is proposed based on a suite of compiler's data flow analysis tasks. Experimental results show that ProgSG reduces the RMSE of design performance predictions by up to $22\%$, and identifies designs with an average of $1.10\times$ and $1.26\times$ (up to $8.17\times$ and $13.31\times$) performance improvement in design space exploration (DSE) task compared to HARP and AutoDSE, respectively.

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

↑