Optimizing OpenCL-Based CNN Design on FPGA with Comprehensive Design Space Exploration and Collaborative Performance Modeling

被引:9
|
作者
Mu, Jiandong [1 ]
Zhang, Wei [1 ]
Liang, Hao [2 ]
Sinha, Sharad [3 ]
机构
[1] Hong Kong Univ Sci & Technol, Hong Kong, Peoples R China
[2] Alibaba Grp, Hangzhou, Peoples R China
[3] Indian Inst Technol IIT, Veling, Goa, India
关键词
CNN; modeling; hardware design; design space exploration;
D O I
10.1145/3397514
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Recent success in applying convolutional neural networks (CNNs) to object detection and classification has sparked great interest in accelerating CNNs using hardware-like field-programmable gate arrays (FPGAs). However, finding an efficient FPGA design for a given CNN model and FPGA board is not trivial since a strong background in hardware design and detailed knowledge of the target board are required. In this work, we try to solve this problem by design space exploration with a collaborative framework. Our framework consists of three main parts: FPGA design generation, coarse-grained modeling, and fine-grained modeling. In the FPGA design generation, we propose a novel data structure, LoopTree, to capture the details of the FPGA design for CNN applications without writing down the source code. Different LoopTrees, which indicate different FPGA designs, are automatically generated in this process. A coarse-grained model will evaluate LoopTrees at the operation level, e.g., add, mult, and so on, so that the most efficient LoopTrees can be selected. A fine-grained model, which is based on the source code, will then refine the selected design in a cycle-accurate manner. A set of comprehensive OpenCL-based designs have been implemented on board to verify our framework. An average estimation error of 8.87% and 4.8% has been observed for our coarse-grained model and fine-grained model, respectively. This is much lower than the prevalent operation-statistics-based estimation, which is obtained according to a predefined formula for specific loop schedules.
引用
收藏
页数:28
相关论文
共 50 条
  • [21] Design Space Exploration for the Design of Reliable SRAM-based FPGA Systems
    Bolchini, Cristiana
    Miele, Antonio
    23RD IEEE INTERNATIONAL SYMPOSIUM ON DEFECT AND FAULT-TOLERANCE IN VLSI SYSTEMS, PROCEEDINGS, 2008, : 332 - 340
  • [22] Design Space Exploration of CNN Accelerators based on GSA Algorithm
    Xie, Zheren
    Dai, Kui
    Wu, Zhilin
    Wang, Jinyue
    Lu, Xin
    Liu, Shuanglong
    2024 9TH INTERNATIONAL CONFERENCE ON SIGNAL AND IMAGE PROCESSING, ICSIP, 2024, : 319 - 323
  • [23] Design Space Exploration for a DT-CNN
    Malki, Suleyman
    Spaanenburg, Lambert
    2008 11TH INTERNATIONAL WORKSHOP ON CELLULAR NEURAL NETWORKS AND THEIR APPLICATIONS, 2008, : 69 - 74
  • [24] Optimizing event-based neural networks on digital neuromorphic architecture: a comprehensive design space exploration
    Xu, Yingfu
    Shidqi, Kevin
    van Schaik, Gert-Jan
    Bilgic, Refik
    Dobrita, Alexandra
    Wang, Shenqi
    Meijer, Roy
    Nembhani, Prithvish
    Arjmand, Cina
    Martinello, Pietro
    Gebregiorgis, Anteneh
    Hamdioui, Said
    Detterer, Paul
    Traferro, Stefano
    Konijnenburg, Mario
    Vadivel, Kanishkan
    Sifalakis, Manolis
    Tang, Guangzhi
    Yousefzadeh, Amirreza
    FRONTIERS IN NEUROSCIENCE, 2024, 18
  • [25] Design space exploration for arbitrary FPGA architectures
    Sing, LC
    Ha, YJ
    ICESS 2005: SECOND INTERNATIONAL CONFERENCE ON EMBEDDED SOFTWARE AND SYSTEMS, 2005, : 269 - 275
  • [26] Design Space Exploration of The KNN Imputation on FPGA
    Al-Zoubi, Ahmad
    Tatas, Konstantinos
    Kyriacou, Costas
    2018 7TH INTERNATIONAL CONFERENCE ON MODERN CIRCUITS AND SYSTEMS TECHNOLOGIES (MOCAST), 2018,
  • [27] Design Space Exploration for the Implementation of a Predictive Current Controller based on FPGA
    Martin, Pedro
    Machado, Osmell
    Rodriguez, Francisco J.
    Bueno, Emilio J.
    2012 IEEE 23RD INTERNATIONAL CONFERENCE ON APPLICATION-SPECIFIC SYSTEMS, ARCHITECTURES AND PROCESSORS (ASAP), 2012, : 161 - 164
  • [28] Design Space Exploration in an FPGA-Based Software Defined Radio
    Gautier, Matthieu
    Ouedraogo, Ganda Stephane
    Sentieys, Olivier
    2014 17TH EUROMICRO CONFERENCE ON DIGITAL SYSTEM DESIGN (DSD), 2014, : 22 - 27
  • [29] Optimizing design of FPGA based on VHDL
    Guangbin, P
    ICEMI'2003: PROCEEDINGS OF THE SIXTH INTERNATIONAL CONFERENCE ON ELECTRONIC MEASUREMENT & INSTRUMENTS, VOLS 1-3, 2003, : 28 - 31
  • [30] Automated design space exploration for FPGA-based heterogeneous interconnects
    A. Cilardo
    E. Fusella
    L. Gallo
    A. Mazzeo
    N. Mazzocca
    Design Automation for Embedded Systems, 2014, 18 : 157 - 170