Accelerating Deep Convolutional Neural Network Inference Based on OpenCL - Intelligence Science IV
Conference Papers Year : 2022

Accelerating Deep Convolutional Neural Network Inference Based on OpenCL

Abstract

In recent years, in order to facilitate the efficient application of deep convolutional neural networks, it has become increasingly important to accelerate the inference stage of deep convolutional neural networks. But with the development of numerous heterogeneous computing devices, today’s popular deep learning inference tools only support specific devices, so they cannot effectively utilize different GPU devices to accelerate DNN inference. To address this issue, we propose an OpenCL-based parallel deep convolutional neural network inference algorithms. Firstly, we design and implement parallel kernel code using OpenCL to accelerate depthwise separable convolution, and implement parallel matrix multiplication combined with clBLAS to accelerate traditional convolution. Meanwhile, we design OpenCL parallel kernel codes for other operations in the inference stage of deep convolutional neural networks. Secondly, we further improve the inference performance by means of kernel fusion and increasing the workload per core. Finally, MobileNet v1 network and the 21-layer residual network based on OpenCL are run on AMD Radeon Vega Frontier GPU and Nvidia GeForce GTX 1070 GPU. Compared to the Caffe implementation, 40.16x, 1.67x speedups are achieved on the AMD GPU and 14.95x, 1.11x speedups are achieved on the Nvidia GPU.
Embargoed file
Embargoed file
0 0 10
Year Month Jours
Avant la publication
Wednesday, January 1, 2025
Embargoed file
Wednesday, January 1, 2025
Please log in to request access to the document

Dates and versions

hal-04666406 , version 1 (01-08-2024)

Licence

Identifiers

Cite

Yong Wu, Huming Zhu, Lingyun Zhang, Biao Hou, Licheng Jiao. Accelerating Deep Convolutional Neural Network Inference Based on OpenCL. 5th International Conference on Intelligence Science (ICIS), Oct 2022, Xi'an, China. pp.98-108, ⟨10.1007/978-3-031-14903-0_11⟩. ⟨hal-04666406⟩
7 View
1 Download

Altmetric

Share

More