Field-Programmable Gate Arrays (FPGAs) are widely used in the central signal processing design of the Square Kilometre Array (SKA) as acceleration hardware. The frequency domain acceleration search (FDAS) module is an important part of the SKA1-MID pulsar search engine. To develop for a yet to be finalised hardware, for cross-discipline interoperability and to achieve fast prototyping, OpenCL as a high-level FPGA synthesis approach is employed to create the sub-modules of FDAS. The FT convolution and the harmonic-summing plus some other minor sub-modules are elements in the FDAS module that have been well-optimised separately before. In this paper, we explore the design space of combining well-optimised designs, dealing with the ensuing need to trade-off and compromise. Pipeline computing is employed to handle multiple input arrays at high speed. The hardware target is to employ multiple high-end FPGAs to process the combined FDAS module. The results show interesting consequences, where the best individual solutions are not necessarily the best solutions for the speed of a pipeline where FPGA resources and memory bandwidth need to be shared. By proposing multiple buffering techniques to the pipeline, the combined FDAS module can achieve up to 2x speedup over implementations without pipeline computing. We perform an extensive experimental evaluation on multiple FPGA boards (Arria 10) hosted in a workstation and compare to a technology comparable mid-range GPU.
MKPipe: A Compiler Framework for Optimizing Multi-Kernel Workloads in OpenCL for FPGA
OpenCL for FPGA使开发人员能够使用类似于处理器的编程模型来设计FPGA。最近的工作表明,在OpenCL级别的代码优化是很重要的,以实现高计算效率。然而,现有的工作要么主要集中在优化单个内核或完全依赖于通道来设计多内核流水线。在本文中,我们提出了一个源代码到源代码的编译器框架,MKPipe,用于优化多内核工作负载的OpenCL FPGA。除了通道,我们提出了新的方案,使多内核管道。我们的优化编译器采用了系统的方法来探索这些优化方法的权衡。为了使内核执行之间更有效的重叠,我们还提出了一种新的工作项/工作组ID重新映射技术。此外,我们提出了新的算法的吞吐量平衡和资源平衡,调整优化对单个内核的多内核工作负载。我们的研究结果表明,我们的编译器优化的多内核实现了高达3.6倍(平均1.4倍)的加速比超过基线,其中内核已经被单独优化。
Comprehensive Evaluation of OpenCL-based Convolutional Neural Network Accelerators in Xilinx and Altera FPGAs
Robotic and Technology of Computers Lab(机器人及计算机技术实验室);School of Electrical, Computer and Energy Engineering(电气、计算机与能源工程学院);University of Seville(塞维利亚大学);Arizona State University(亚利桑那州立大学)
Accelerated Neural Networks on OpenCL Devices Using SYCL-DNN
Codeplay Software Ltd.(Codeplay软件有限公司)
在过去的几年里,机器学习再次引起了人们的兴趣,一些研究表明神经网络在一系列以前被认为非常困难的任务中的有效性。神经网络在图像识别和自然语言处理领域的有效性主要源于公司和研究人员可用的大量数据,以及GPU、FPGA和ASIC等现代加速器中可用的大量计算能力。有许多方法可供开发人员利用GPGPU技术,如SYCL,OpenCL和CUDA,但许多应用程序需要相同的低级数学例程。专用于加速这些常见例程的库允许开发人员轻松地充分利用可用硬件,而无需对硬件本身的低水平知识,但是这些库通常由硬件制造商为特定硬件提供,例如用于Nvidia硬件的cuDNN或用于AMD硬件的MIOpen。SYCL-DNN是一个新的开源库,致力于为神经网络操作提供加速例程,这些操作与硬件和供应商无关。SYCL-DNN建立在SYCL开放标准之上,完全用标准C++编写,允许用户使用现代C++接口轻松加速各种硬件的神经网络代码。该库在AMD的OpenCL for GPU、英特尔的OpenCL for CPU和GPU、ARM的OpenCL for Mali GPU以及ComputeAorta的OpenCL for R-Car CV引擎和主机CPU上进行了测试。在这次演讲中,我们将介绍SYCL-DNN在这一系列硬件上的性能数据,并讨论如何在具有不同硬件功能的各种加速器上实现高性能。