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 条
  • [41] Combining structural performance and designer preferences in evolutionary design space exploration
    Mueller, Caitlin T.
    Ochsendorf, John A.
    AUTOMATION IN CONSTRUCTION, 2015, 52 : 70 - 82
  • [42] Power/performance/thermal design-space exploration for multicore architectures
    Monchiero, Matteo
    Canal, Ramon
    Gonzalez, Antonio
    IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 2008, 19 (05) : 666 - 681
  • [43] Local Memory Design Space Exploration for High-Performance Computing
    Bertran, Ramon
    Gonzalez, Marc
    Martorell, Xavier
    Navarro, Nacho
    Ayguade, Eduard
    COMPUTER JOURNAL, 2011, 54 (05) : 786 - 799
  • [44] A new performance evaluation approach for system level design space exploration
    Joshi, CP
    Kumar, A
    Balakrishnan, M
    ISSS'02: 15TH INTERNATIONAL SYMPOSIUM ON SYSTEM SYNTHESIS, 2002, : 180 - 185
  • [45] A framework for design space exploration and performance analysis of networked embedded systems
    Dep. of Computer Science, University of Cantabria, Spain
    不详
    ACM Int. Conf. Proc. Ser.,
  • [46] MDE-Based Approach for Generalizing Design Space Exploration
    Saxena, Tripti
    Karsai, Gabor
    MODEL DRIVEN ENGINEERING LANGUAGES AND SYSTEMS, PT I, 2010, 6394 : 46 - 60
  • [47] Design Space Exploration for Edge Machine Learning Featured by MathWorks FPGA DL Processor: A Survey
    Bertazzoni, Stefano
    Canese, Lorenzo
    Cardarilli, Gian Carlo
    Di Nunzio, Luca
    Fazzolari, Rocco
    Re, Marco
    Spano, Sergio
    IEEE ACCESS, 2024, 12 (9418-9439): : 9418 - 9439
  • [48] Accurate analytical spiral inductor modeling techniques for efficient design space exploration
    Nieuwoudt, Arthur
    McCorquodale, Michael S.
    Borno, Ruba T.
    Massoud, Yehia
    IEEE ELECTRON DEVICE LETTERS, 2006, 27 (12) : 998 - 1001
  • [49] Design space exploration in aircraft conceptual design phase based on system-of-systems simulation
    Tian Yifeng
    Liu Hu
    Huang Jun
    INTERNATIONAL JOURNAL OF AERONAUTICAL AND SPACE SCIENCES, 2015, 16 (04) : 624 - 635
  • [50] Cloud-Based CAD Parametrization for Design Space Exploration and Design Optimization in Numerical Simulations
    Guerrero, Joel
    Mantelli, Luca
    Naqvi, Sahrish B.
    FLUIDS, 2020, 5 (01)