Pipelining of a Mobile SoC and an External NPU for Accelerating CNN Inference
- 14 August 2023
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Embedded Systems Letters
- Vol. 16 (2) , 150-153
Abstract
Convolutional Neural Networks (CNN) algorithms are increasingly being deployed on edge devices with the co-growth of hardware and software. Deploying CNNs on resource-constrained devices often requires optimization of CPUs and GPUs. While a dedicated hardware such as a neural processing unit(NPU) has been successfully introduced, cooperative methods between CPU, GPU and NPU are still immature. In this paper, we propose two approaches to optimize the integration of a mobile system-on-chip(SoC) with an external neural processing unit(eNPU) to achieve harmonious pipelining and enhance inference speed and throughput. The first approach involves a BLAS library search scheme to allocate optimal libraries per layer on the host side, while the second approach optimizes performance by searching for model slice points. We utilize CPU-based NNPACK, OpenBLAS, and GPU-based CLBlast as computing libraries that are automatically allocated. The entire neural network is optimally split into two segments based on the characteristics of the neural network layers and hardware performance. We evaluated our algorithm on various mobile devices, including the Hikey-970, Hikey-960, and Firefly-rk3399. Through experiments, we show that the proposed pipeline inference method reduces latency by 10% and increases throughput by more than 17% compared to parallel execution on an eNPU and SoC.Keywords
Funding Information
- Korea Research Institute for Defense Technology Planning and Advancement
- Korea government (KRITCT-22-040)
This publication has 12 references indexed in Scilit:
- Aggressive Energy Reduction for Video Inference with Software-only StrategiesACM Transactions on Embedded Computing Systems, 2019
- MOSAIC: Heterogeneity-, Communication-, and Constraint-Aware Model Slicing and Execution for Accurate and Efficient Inference2019
- Embedded Deep Learning for Vehicular Edge Computing2018
- CLBlast2018
- Deep Neural Networks: A Comparison on Different Computing Platforms2018
- CaffePressoACM Transactions on Embedded Computing Systems, 2017
- Machine Intelligence on Resource-Constrained IoT DevicesACM Transactions on Embedded Computing Systems, 2017
- Densely Connected Convolutional Networks2017
- DeepMon2017
- Deep Residual Learning for Image Recognition2016