arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2003.12101cs.DCcs.ARcs.LGstat.ML
收藏

为云中的深度学习实现高效灵活的FPGA虚拟化

Enabling Efficient and Flexible FPGA Virtualization for Deep Learning in the Cloud

Tsinghua University(清华大学)

Shulin Zeng, Guohao Dai, Hanbo Sun, Kai Zhong, Guangjun Ge, Kaiyuan Guo, Yu Wang, Huazhong Yang

摘要:

FPGA在为深度神经网络(DNN)推理应用提供低延迟和高能效解决方案方面显示出巨大的潜力。目前,大多数基于FPGA的DNN加速器在云中以时分复用的方式运行,用于多个用户共享单个FPGA,并且需要重新编译$\sim$ 100 s开销。这种设计导致多用户隔离性差,性能损失严重,无法为公有云和私有云场景提供高效灵活的FPGA虚拟化。为了解决这些问题,我们介绍了一种新的虚拟化框架的指令架构集(ISA)的基础上DNN加速器共享一个FPGA。我们通过引入两级指令调度模块和基于多核的硬件资源池来实现隔离。这样的设计提供了隔离的和运行时可编程的硬件资源,进一步导致多个用户的性能隔离。另一方面,为了克服重编译的开销,我们提出了一种基于分片的指令框架包设计和两阶段的静态-动态编译。仅对轻量级的运行时信息进行重新编译,开销为$\sim$ 1 ms,保证了私有云的性能。我们广泛的实验结果表明,所提出的虚拟化设计实现了1.07- 1.69倍和1.88- 3.12倍的吞吐量提高比以前的静态设计使用单核和多核架构,分别。

英文摘要:

FPGAs have shown great potential in providing low-latency and energy-efficient solutions for deep neural network (DNN) inference applications. Currently, the majority of FPGA-based DNN accelerators in the cloud run in a time-division multiplexing way for multiple users sharing a single FPGA, and require re-compilation with $\sim$100 s overhead. Such designs lead to poor isolation and heavy performance loss for multiple users, which are far away from providing efficient and flexible FPGA virtualization for neither public nor private cloud scenarios. To solve these problems, we introduce a novel virtualization framework for instruction architecture set (ISA) based on DNN accelerators by sharing a single FPGA. We enable the isolation by introducing a two-level instruction dispatch module and a multi-core based hardware resources pool. Such designs provide isolated and runtime-programmable hardware resources, further leading to performance isolation for multiple users. On the other hand, to overcome the heavy re-compilation overheads, we propose a tiling-based instruction frame package design and two-stage static-dynamic compilation. Only the light-weight runtime information is re-compiled with $\sim$1 ms overhead, thus the performance is guaranteed for the private cloud. Our extensive experimental results show that the proposed virtualization design achieves 1.07-1.69x and 1.88-3.12x throughput improvement over previous static designs using the single-core and the multi-core architectures, respectively.

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

↑