Union:基于MLIR的统一HW-SW协同设计生态系统
Union: A Unified HW-SW Co-Design Ecosystem in MLIR for Evaluating Tensor Operations on Spatial Accelerators
摘要:
为了满足商业和科学应用中对深度学习的极端计算需求,Bronlow加速器越来越受欢迎。虽然这些“特定领域”加速器不像CPU和GPU那样完全可编程,但它们在数据编排方面保留了不同程度的灵活性,即,优化了窗口和平铺,以提高效率。当设计新算法和映射方法以在新硬件上执行目标问题的算法时,存在若干挑战。以前的作品已经单独解决了这些挑战。为了解决这一挑战作为一个整体,在这项工作中,我们提出了一个HW-SW协同设计生态系统的空间加速器称为联盟内流行的MLIR编译器基础设施。我们的框架允许探索不同的算法和它们在几个加速器成本模型上的映射。Union还包括一个即插即用的加速器成本模型库和映射器,可以很容易地扩展。算法和加速器成本模型通过一种新颖的映射抽象连接,该映射抽象捕获空间加速器的映射空间,该空间加速器可以基于来自硬件、工作负载和映射器的约束进行系统地修剪。我们通过几个案例研究展示了Union对社区的价值,这些案例研究使用不同的映射方案在不同的加速器架构上卸载不同的张量操作(CONV/GEMM/张量收缩)。
英文摘要:
To meet the extreme compute demands for deep learning across commercial and scientific applications, dataflow accelerators are becoming increasingly popular. While these "domain-specific" accelerators are not fully programmable like CPUs and GPUs, they retain varying levels of flexibility with respect to data orchestration, i.e., dataflow and tiling optimizations to enhance efficiency. There are several challenges when designing new algorithms and mapping approaches to execute the algorithms for a target problem on new hardware. Previous works have addressed these challenges individually. To address this challenge as a whole, in this work, we present a HW-SW co-design ecosystem for spatial accelerators called Union within the popular MLIR compiler infrastructure. Our framework allows exploring different algorithms and their mappings on several accelerator cost models. Union also includes a plug-and-play library of accelerator cost models and mappers which can easily be extended. The algorithms and accelerator cost models are connected via a novel mapping abstraction that captures the map space of spatial accelerators which can be systematically pruned based on constraints from the hardware, workload, and mapper. We demonstrate the value of Union for the community with several case studies which examine offloading different tensor operations(CONV/GEMM/Tensor Contraction) on diverse accelerator architectures using different mapping schemes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。