Optimizing depthwise separable convolution on DCU

可分离空间 卷积(计算机科学) 计算机科学 数学 人工智能 数学分析 人工神经网络
作者
Zheng Liu,Hao Meng,Weizhe Zhang,Gangzhao Lu,Xiaobin Tian,Siyu Yang,Min Xie,Jie Dai,Chengfu Yuan,Desheng Wang,Hongwei Yang
出处
期刊:CCF Transactions on High Performance Computing [Springer Science+Business Media]
标识
DOI:10.1007/s42514-024-00200-3
摘要

Abstract The integration of Large Language Models (LLMs) with Convolutional Neural Networks (CNNs) is significantly advancing the development of large models. However, the computational cost of large models is high, necessitating optimization for greater efficiency. One effective way to optimize the CNN is the use of depthwise separable convolution (DSC), which decouples spatial and channel convolutions to reduce the number of parameters and enhance efficiency. In this study, we focus on porting and optimizing DSC kernel functions from the GPU to the Deep Computing Unit (DCU), a computing accelerator developed in China. For depthwise convolution, we implement a row data reuse algorithm to minimize redundant data loading and memory access overhead. For pointwise convolution, we extend our dynamic tiling strategy to improve hardware utilization by balancing resource allocation among blocks and threads, and we enhance arithmetic intensity through a channel distribution algorithm. We implement depthwise and pointwise convolution kernel functions and integrate them into PyTorch as extension modules. Experiments demonstrate that our optimized kernel functions outperform the MIOpen library on the DCU, achieving up to a 3.59 $$\times$$ × speedup in depthwise convolution and up to a 3.54 $$\times$$ × speedup in pointwise convolution. These results highlight the effectiveness of our approach in leveraging the DCU’s architecture to accelerate deep learning operations.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
蓝绝发布了新的文献求助10
刚刚
sunwei完成签到,获得积分10
1秒前
木阳发布了新的文献求助10
1秒前
星辰大海发布了新的文献求助10
2秒前
molihuakai应助xy采纳,获得10
2秒前
2秒前
铭铭子发布了新的文献求助10
3秒前
wuhzh发布了新的文献求助10
3秒前
旭旭完成签到,获得积分10
4秒前
潇洒的冷玉完成签到,获得积分10
5秒前
读万卷书完成签到 ,获得积分10
5秒前
明亮泽洋完成签到 ,获得积分10
7秒前
7秒前
英俊的铭应助科研通管家采纳,获得10
7秒前
7秒前
Akim应助科研通管家采纳,获得10
7秒前
在水一方应助张怡采纳,获得10
7秒前
彭于晏应助科研通管家采纳,获得10
7秒前
深情安青应助科研通管家采纳,获得20
7秒前
天天快乐应助科研通管家采纳,获得10
8秒前
情怀应助科研通管家采纳,获得10
8秒前
乐乐应助科研通管家采纳,获得10
8秒前
Ava应助朴素的山蝶采纳,获得10
8秒前
李爱国应助科研通管家采纳,获得30
8秒前
wanci应助科研通管家采纳,获得30
8秒前
搜集达人应助科研通管家采纳,获得10
8秒前
9秒前
情怀应助科研通管家采纳,获得10
9秒前
大知闲闲应助科研通管家采纳,获得10
9秒前
9秒前
思源应助easymoneysniper采纳,获得10
9秒前
小马甲应助科研通管家采纳,获得30
9秒前
cdercder应助科研通管家采纳,获得10
9秒前
李爱国应助科研通管家采纳,获得10
9秒前
maxiaoyun发布了新的文献求助10
11秒前
轻松的冰萍完成签到,获得积分10
11秒前
fair完成签到,获得积分10
11秒前
木阳完成签到,获得积分10
12秒前
13秒前
llt完成签到,获得积分10
13秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Reducing Compassion Fatigue, Secondary Traumatic Stress and Burnout 600
China Pluperfect I: Epistemology of Past and Outside in Chinese Art 520
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
Mammalian Synthetic Biology 500
Auslegungsgeschichte 500
Cosmos as Art Object: Studies in Plato's Timaeus and Other Dialogues 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7638299
求助须知:如何正确求助?哪些是违规求助? 9211617
关于积分的说明 19759396
捐赠科研通 7205313
什么是DOI,文献DOI怎么找? 3275838
关于科研通互助平台的介绍 2437432
邀请新用户注册赠送积分活动 2273029