Xilinx和Altera FPGA中OpenCL-based卷积神经网络加速器的综合评价
Comprehensive Evaluation of OpenCL-based Convolutional Neural Network Accelerators in Xilinx and Altera FPGAs
摘要:
深度学习极大地推进了人工智能的发展,在工业界和学术界都获得了广泛的欢迎。特别感兴趣的是卷积神经网络(CNN),它从视觉皮层的分层结构中获得灵感,形成卷积操作的深层,以及完全连接的分类器。这些深度CNN架构的硬件实现面临着内存瓶颈的挑战,这些内存瓶颈需要许多卷积和全连接层,这些层需要大量的通信来进行并行计算。基于多核CPU的解决方案由于内存墙和低并行性而证明了它们对这个问题的不足。众核GPU架构表现出卓越的性能,但它们消耗高功率,并且由于高速缓存和主内存之间的不一致性而具有内存限制。FPGA设计解决方案也在积极探索中,这些解决方案允许使用嵌入式BlockRAM实现存储层次结构。这促进了多个处理单元之间共享内存元素的并行使用,避免了数据的可复制性和不一致性。这使得FPGA成为CNN实时分类的潜在强大解决方案。Altera和Xilinx都采用GPU的OpenCL协同设计框架进行FPGA设计,作为伪自动开发解决方案。本文对Altera和Xilinx OpenCL框架的5层深度CNN进行了全面评估和比较。讨论了CNN的硬件资源、时间性能和OpenCL架构。Xilinx展示了更快的合成速度、更好的FPGA资源利用率和更紧凑的电路板。Altera提供多平台工具、成熟的设计社区和更好的执行时间。
英文摘要:
Deep learning has significantly advanced the state of the art in artificial intelligence, gaining wide popularity from both industry and academia. Special interest is around Convolutional Neural Networks (CNN), which take inspiration from the hierarchical structure of the visual cortex, to form deep layers of convolutional operations, along with fully connected classifiers. Hardware implementations of these deep CNN architectures are challenged with memory bottlenecks that require many convolution and fully-connected layers demanding large amount of communication for parallel computation. Multi-core CPU based solutions have demonstrated their inadequacy for this problem due to the memory wall and low parallelism. Many-core GPU architectures show superior performance but they consume high power and also have memory constraints due to inconsistencies between cache and main memory. FPGA design solutions are also actively being explored, which allow implementing the memory hierarchy using embedded BlockRAM. This boosts the parallel use of shared memory elements between multiple processing units, avoiding data replicability and inconsistencies. This makes FPGAs potentially powerful solutions for real-time classification of CNNs. Both Altera and Xilinx have adopted OpenCL co-design framework from GPU for FPGA designs as a pseudo-automatic development solution. In this paper, a comprehensive evaluation and comparison of Altera and Xilinx OpenCL frameworks for a 5-layer deep CNN is presented. Hardware resources, temporal performance and the OpenCL architecture for CNNs are discussed. Xilinx demonstrates faster synthesis, better FPGA resource utilization and more compact boards. Altera provides multi-platforms tools, mature design community and better execution times.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。