SPARTA:面向高效可扩展水平扩散天气模板计算的空间加速
SPARTA: Spatial Acceleration for Efficient and Scalable Horizontal Diffusion Weather Stencil Computation
AI总结:
SPARTA利用二维空间架构和MLIR编译器,设计首个扩展空间加速器,在真实Versal AI Engine上实现水平扩散天气模板计算,性能较CPU、GPU、FPGA分别提升17.1倍、1.2倍和2.1倍。
摘要:
快速且准确的气候模拟和天气预报对于理解和应对气候变化的影响至关重要。现实世界中的天气和气候建模由复杂的复合模板内核组成,这些内核在传统架构上表现不佳。水平扩散是许多气候和天气预报模型中发现的一种重要的复合模板。近期工作提出使用FPGA作为传统CPU和GPU系统的替代方案来加速复合模板内核。然而,我们观察到复合模板计算无法利用FPGA上可用的位级灵活性,因为其复杂的内存访问模式,导致硬件资源利用率高且峰值性能低。我们提出了SPARTA,一种用于水平扩散天气模板计算的新型空间加速器。我们利用二维空间架构,通过设计首个使用MLIR(多级中间表示)编译器框架的扩展空间加速器,来高效加速水平扩散模板。我们在真实的尖端AMD-Xilinx Versal AI Engine空间架构上评估其性能。我们的真实系统评估结果表明,SPARTA分别比最先进的CPU、GPU和FPGA实现快17.1倍、1.2倍和2.1倍。我们的结果揭示了在可用处理资源之间平衡工作负载对于在空间架构上实现高性能至关重要。我们还实现并评估了五种常用的模板计算研究基准的初等模板。我们免费开源所有实现,以帮助未来在模板计算和空间计算系统的研究,代码位于https://github.com/CMU-SAFARI/SPARTA。
英文摘要:
Fast and accurate climate simulations and weather predictions are critical for understanding and preparing for the impact of climate change. Real-world weather and climate modeling consist of complex compound stencil kernels that do not perform well on conventional architectures. Horizontal diffusion is one such important compound stencil found in many climate and weather prediction models. Recent works propose using FPGAs as an alternative to traditional CPU and GPU-based systems to accelerate compound stencil kernels. However, we observe that compound stencil computations cannot leverage the bit-level flexibility available on an FPGA because of its complex memory access patterns, leading to high hardware resource utilization and low peak performance. We introduce SPARTA, a novel spatial accelerator for horizontal diffusion weather stencil computation. We exploit the two-dimensional spatial architecture to efficiently accelerate horizontal diffusion stencil by designing the first scaled-out spatial accelerator using MLIR (Multi-Level Intermediate Representation) compiler framework. We evaluate its performance on a real cutting-edge AMD-Xilinx Versal AI Engine spatial architecture. Our real-system evaluation results demonstrate that SPARTA outperforms the state-of-the-art CPU, GPU, and FPGA implementations by 17.1x, 1.2x, and 2.1x, respectively. Our results reveal that balancing workload across the available processing resources is crucial in achieving high performance on spatial architectures. We also implement and evaluate five elementary stencils that are commonly used as benchmarks for stencil computation research. We freely open-source all our implementations to aid future research in stencil computation and spatial computing systems at https://github.com/CMU-SAFARI/SPARTA.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。