将Halide程序编译为Push-Memory加速器
Compiling Halide Programs to Push-Memory Accelerators
摘要:
图像处理和机器学习应用程序从硬件加速中受益匪浅,但现有的编译器要么针对FPGA(牺牲灵活硬件的功率和性能),要么针对ASIC(随着应用程序的变化而迅速过时)。可编程领域特定加速器已经成为这两个极端之间有前途的中间地带,但这种架构传统上是困难的编译器目标。主要障碍是这些加速器通常使用与CPU和GPU不同的内存抽象:将数据流从一个计算内核发送到其他内核的内存,可能重新排序。为了解决由推存储器引起的编译挑战,我们建议修改编译器中间和后端的内存表示,将存储与地址生成和控制逻辑结合在一个单一的结构中-一个统一的缓冲区。我们表明,这种编译器的抽象可以有效地实现在一个可编程的加速器,并设计一个内存映射算法,结合多面体分析和软件矢量化技术,以我们的加速器。我们的评估表明,编译器支持可编程性,同时保持高性能。它可以将各种图像处理和机器学习应用程序编译到我们的加速器上,与FPGA相比,运行时间提高了4.7倍,能效提高了4.3倍。
英文摘要:
Image processing and machine learning applications benefit tremendously from hardware acceleration, but existing compilers target either FPGAs, which sacrifice power and performance for flexible hardware, or ASICs, which rapidly become obsolete as applications change. Programmable domain-specific accelerators have emerged as a promising middle-ground between these two extremes, but such architectures have traditionally been difficult compiler targets. The main obstacle is that these accelerators often use a different memory abstraction than CPUs and GPUs: push memories that send a data stream from one computation kernel to other kernels, possibly reordered. To address the compilation challenges caused by push memories, we propose that the representation of memory in the middle and backend of the compiler be altered to combine storage with address generation and control logic in a single structure -- a unified buffer. We show that this compiler abstraction can be implemented efficiently on a programmable accelerator, and design a memory mapping algorithm that combines polyhedral analysis and software vectorization techniques to target our accelerator. Our evaluation shows that the compiler supports programmability while maintaining high performance. It can compile a wide range of image processing and machine learning applications to our accelerator with 4.7x better runtime and 4.3x better energy-efficiency as compared to an FPGA.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。