LAAFD: 基于大语言模型的加速FPGA设计代理
LAAFD: LLM-based Agents for Accelerated FPGA Design
AI总结:
LAAFD利用大语言模型将通用C++转换为优化的Vitis HLS内核,实现高性能FPGA设计,同时降低专业门槛。
摘要:
FPGA提供高性能、低延迟和高能效,适用于加速计算,但在科学和边缘环境中应用受限于所需的专用硬件专业知识。高层次综合(HLS)在HDLs上提高了生产率,但竞争性设计仍需要硬件意识的优化和精心的数据流设计。我们介绍了LAAFD,一种使用大语言模型将通用C++转换为优化的Vitis HLS内核的代理工作流程。LAAFD自动执行关键转换:深度流水线、向量化和数据流划分,并通过HLS联合仿真和综合反馈闭合回路,以验证正确性并迭代改进执行时间。在15个代表HPC中常见计算模式的内核套件上,LAAFD在与手工调优基线相比时达到99.9%的几何平均性能。对于 stencil 工作负载,LAAFD与SODA(一种最先进的基于DSL的HLS代码生成器)性能相当,同时产生更易读的内核。这些结果表明,LAAFD在不牺牲效率的情况下显著降低了FPGA加速的专业知识门槛。
英文摘要:
FPGAs offer high performance, low latency, and energy efficiency for accelerated computing, yet adoption in scientific and edge settings is limited by the specialized hardware expertise required. High-level synthesis (HLS) boosts productivity over HDLs, but competitive designs still demand hardware-aware optimizations and careful dataflow design. We introduce LAAFD, an agentic workflow that uses large language models to translate general-purpose C++ into optimized Vitis HLS kernels. LAAFD automates key transfor mations: deep pipelining, vectorization, and dataflow partitioning and closes the loop with HLS co-simulation and synthesis feedback to verify correctness while iteratively improving execution time in cycles. Over a suite of 15 kernels representing common compute patterns in HPC, LAFFD achieves 99.9% geomean performance when compared to the hand tuned baseline for Vitis HLS. For stencil workloads, LAAFD matches the performance of SODA, a state-of-the-art DSL-based HLS code generator for stencil solvers, while yielding more readable kernels. These results suggest LAAFD substantially lowers the expertise barrier to FPGA acceleration without sacrificing efficiency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。