arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.15024cs.ARcs.LG
收藏

用于DNN推理加速的高度可配置的硬件/软件堆栈

A Highly Configurable Hardware/Software Stack for DNN Inference Acceleration

Intel Labs(英特尔实验室)

Suvadeep Banerjee, Steve Burns, Pasquale Cocchini, Abhijit Davare, Shweta Jain, Desmond Kirkpatrick, Anton Sorokin, Jin Yang, Zhenkun Yang

摘要:

这项工作的重点是为特定领域的加速器提供一种高效的敏捷设计方法。我们采用功能的垂直开发堆栈的功能增强,并将其应用到TVM/VTA推理加速器。我们增强了VTA设计空间,并为额外的工作负载提供了端到端支持。这是通过增强VTA微体系结构和指令集体系结构(ISA)以及通过增强TVM编译堆栈以支持广泛的VTA编译器来实现的。VTA tsim实现(基于CHISEL)已经通过ALU/GEMM执行单元的完全流水线版本进行了增强。在tsim中,内存宽度现在可以在8-64字节之间变化。字段宽度变得更加灵活,以支持更大的暂存器。添加了新的指令:逐元素的8位乘法以支持dependency卷积,并加载选择的填充值以支持最大池化。还增加了对更多层和更好的双缓冲的支持。完全流水线化的ALU/GEMM有显著的帮助:在默认配置下运行ResNet-18的周期减少4.9倍,面积变化最小。可以实例化以12倍更大的面积为代价进一步减少11.5倍周期计数的配置。图中显示了面积-性能帕累托曲线上的许多点,展示了执行单元大小、内存接口宽度和暂存器大小的平衡。最后,VTA现在能够运行Mobilenet 1.0和ResNets的所有层,包括以前禁用的池和完全连接的层。TVM/VTA体系结构一直以在几分钟内对RTL进行端到端工作负载评估为特色。通过我们的修改,它现在提供了更多的可行配置,具有广泛的成本与性能。所有提到的功能都可以在开源分支中使用,而这些功能的一个子集已经被上传。

英文摘要:

This work focuses on an efficient Agile design methodology for domain-specific accelerators. We employ feature-by-feature enhancement of a vertical development stack and apply it to the TVM/VTA inference accelerator. We have enhanced the VTA design space and enabled end-to-end support for additional workloads. This has been accomplished by augmenting the VTA micro-architecture and instruction set architecture (ISA), as well as by enhancing the TVM compilation stack to support a wide range of VTA configs. The VTA tsim implementation (CHISEL-based) has been enhanced with fully pipelined versions of the ALU/GEMM execution units. In tsim, memory width can now range between 8-64 bytes. Field widths have been made more flexible to support larger scratchpads. New instructions have been added: element-wise 8-bit multiplication to support depthwise convolution, and load with a choice of pad values to support max pooling. Support for more layers and better double buffering has also been added. Fully pipelining ALU/GEMM helps significantly: 4.9x fewer cycles with minimal area change to run ResNet-18 under the default config. Configs featuring a further 11.5x decrease in cycle count at a cost of 12x greater area can be instantiated. Many points on the area-performance pareto curve are shown, showcasing the balance of execution unit sizing, memory interface width, and scratchpad sizing. Finally, VTA is now able to run Mobilenet 1.0 and all layers for ResNets, including the previously disabled pooling and fully connected layers. The TVM/VTA architecture has always featured end-to-end workload evaluation on RTL in minutes. With our modifications, it now offers a much greater number of feasible configurations with a wide range of cost vs. performance. All capabilities mentioned are available in opensource forks while a subset of these capabilities have already been upstreamed.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑