从PyTorch到Calyx:面向ML加速器的开源编译器工具链
From PyTorch to Calyx: An Open-Source Compiler Toolchain for ML Accelerators
AI总结:
本文提出一个开源编译器工具链,将PyTorch模型转换为可综合的SystemVerilog代码,通过内存分区技术实现高效并行化,生成性能接近行业级工具的FPGA硬件设计。
摘要:
我们提出一个端到端的开源编译器工具链,目标是从PyTorch编写的ML模型生成可综合的SystemVerilog代码。我们的工具链利用加速器设计语言Allo、硬件中间表示(IR)Calyx以及LLVM下的CIRCT项目。我们还实现了一组用于内存分区的编译器传递,使内存密集型ML工作负载能够有效并行化。实验结果表明,我们的编译器可以生成优化的FPGA实现硬件设计,在性能上与闭源的行业级工具如Vitis HLS相当。
英文摘要:
We present an end-to-end open-source compiler toolchain that targets synthesizable SystemVerilog from ML models written in PyTorch. Our toolchain leverages the accelerator design language Allo, the hardware intermediate representation (IR) Calyx, and the CIRCT project under LLVM. We also implement a set of compiler passes for memory partitioning, enabling effective parallelism in memory-intensive ML workloads. Experimental results demonstrate that our compiler can effectively generate optimized FPGA-implementable hardware designs that perform reasonably well against closed-source industry-grade tools such as Vitis HLS.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。