SPMW:一种用于可扩展加速器设计的基于网格的编程模型
SPMW: A Grid-Based Programming Model for Scalable Accelerator Design
AI总结:
提出基于网格的SPMW编程模型,解耦工作单元行为与网格连接,实现可扩展加速器设计,在脉动阵列、FFT等场景性能优于现有方案,且对编码智能体友好,令牌使用量更低。
摘要:
现代加速器通过对重复计算进行专业化处理,并将其在规则硬件结构中复制,以实现高性能。维持这种并行性需要同样精心设计的数据传输方式。然而,设计工具通常将这些结构表示为顺序程序,或将其展平为独立的硬件模块与连接,这会模糊共享模式并导致编译器工作重复。我们提出Single Program, Multiple Connected Work Units(SPMW,即单程序多连接工作单元),一种用于可扩展加速器设计的基于网格的编程模型,将网格的规则性作为一等抽象。SPMW将本地工作单元行为与网格连接及数据传输解耦。据我们所知,SPMW是首个在整个编译过程中保留规则性的编程模型,结合了行为级高级综合(HLS)与结构级寄存器传输级(RTL)生成,适用于固定功能加速器及领域特定指令可编程加速器。我们用Python前端和基于MLIR的编译器实现SPMW,该编译器为每个不同的内核配置合成一次,供独立硬件实例复用。保留规则性还支持并行编译和功能仿真,以加速迭代设计反馈。我们用SPMW生成了一个32×32的脉动阵列,与AutoSA相比,其GEMM延迟降低4.36倍,并行内核到RTL的编译时间缩短619倍;我们的FFT实现的延迟最高比HP-FFT低2.65倍;我们的mini-TPU及用SPMW实现的FEATHER加速器展示了复杂的组合能力,且优于其RTL基线;并行功能仿真在mini-TPU工作负载上比Vitis HLS C仿真最高提速18.4倍。SPMW也对智能体友好:在相同设计规范下,所有五个编码智能体生成的SPMW设计均满足正确性和延迟要求,且与SystemVerilog相比,令牌使用量降低7.51倍。
英文摘要:
Modern accelerators specialize recurring computation and replicate it across regular hardware structures to achieve high performance. Sustaining this parallelism requires equally deliberate data delivery. Yet design tools often express these structures as sequential programs or flatten them into separate hardware modules and connections. This obscures shared patterns and leads to repeated compiler work. We introduce Single Program, Multiple Connected Work Units (SPMW), a grid-based programming model for scalable accelerator design that makes grid regularity a first-class abstraction. SPMW decouples local work-unit behavior from grid connectivity and data delivery. To our knowledge, SPMW is the first programming model to retain regularity throughout the compilation process, combining behavioral HLS with structural RTL generation for both fixed-function and domain-specific instruction-programmable accelerators. We implement SPMW with a Python frontend and an MLIR-based compiler that synthesizes each distinct kernel configuration once for reuse across independent hardware instances. Preserving regularity also enables parallel compilation and functional simulation to accelerate iterative design feedback. We use SPMW to generate a 32x32 systolic array that reduces GEMM latency and parallel kernel-to-RTL compilation time by 4.36x and 619x relative to AutoSA. Our FFT achieves up to 2.65x lower latency than HP-FFT. Our mini-TPU and our SPMW implementation of the FEATHER accelerator demonstrate complex composition and outperform their RTL baselines. Parallel functional simulation provides up to 18.4x speedup over Vitis HLS C simulation on the mini-TPU workloads. SPMW is also agent-friendly: given the same design specification, all five coding agents produce SPMW designs that satisfy the correctness and latency requirements, with 7.51x lower token usage than for SystemVerilog.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。