Optimizing CNN Computation Using RISC-V Custom Instruction Sets for Edge Platforms

计算机科学 精简计算指令集 计算 并行计算 指令集 GSM演进的增强数据速率 算法 人工智能
作者
Shihang Wang,Xingbo Wang,Zhiyuan Xu,Bingzhen Chen,Chenxi Feng,Qi Wang,Terry Tao Ye
出处
期刊:IEEE Transactions on Computers [Institute of Electrical and Electronics Engineers]
卷期号:73 (5): 1371-1384 被引量:26
标识
DOI:10.1109/tc.2024.3362060
摘要

Benefit from the custom instruction extension capabilities, RISC-V architecture can be optimized for many domain-specific applications. In this paper, we propose seven RISC-V SIMD (single instruction multiple data) custom instructions that can significantly optimize the convolution, activation and pool operations in CNN inference computation. More specifically, instruction CONV23 can greatly speed up the operation of F (2 × 2, 3 × 3). With the adoption of Winograd algorithm, the number of multiplications can be reduced from 36 to 16, and the execution time is also reduced from 140 to 21 clock cycles. These custom instructions can be executed in batch mode within the acceleration module where the immediate data can be reused, so the latency and energy overhead associated with excess memory accesses can be eliminated. Using inline assembler in C language, the custom instructions can be called and compiled together with C source code. A revised RISC-V processor, RI5CY-Accel is constructed on FPGA to accommodate these custom instructions. Revised LeNet-5, VGG16 and ResNet18 model; called LeNet-Accel, VGG16-Accel and ResNet18-Accel are also optimized based on RI5CY-Accel architecture. Benchmark experiments demonstrated that the inference of LeNet-Accel, VGG16-Accel and ResNet18-Accel based on RI5CY-Accel can greatly reduce the execution latency by over 76.6%, 88.8% and 87.1%, with the total energy consumption saving of 74.8%, 87.8% and 85.1% respectively.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
QinCaibin完成签到,获得积分10
刚刚
momo发布了新的文献求助10
1秒前
上官若男应助臭妹妹采纳,获得10
2秒前
2秒前
2秒前
Decadezb发布了新的文献求助10
3秒前
123发布了新的文献求助10
3秒前
3秒前
思源应助LHH采纳,获得10
4秒前
传奇3应助粥粥采纳,获得10
4秒前
4秒前
鱼木发布了新的文献求助30
5秒前
5秒前
6秒前
HesperLxy发布了新的文献求助10
7秒前
风中叶子完成签到,获得积分10
7秒前
8秒前
11发布了新的文献求助30
9秒前
尊敬山兰发布了新的文献求助10
10秒前
10秒前
笨笨山芙应助激动的醉香采纳,获得10
10秒前
清脆小蕾发布了新的文献求助10
11秒前
远方完成签到,获得积分10
11秒前
友好的凌波完成签到,获得积分10
11秒前
11秒前
小yy发布了新的文献求助10
11秒前
杨敏完成签到,获得积分10
11秒前
huanghuahua发布了新的文献求助10
12秒前
栾花花发布了新的文献求助10
13秒前
13秒前
laofe完成签到,获得积分10
13秒前
明理的祥发布了新的文献求助10
14秒前
DustxhX完成签到,获得积分10
14秒前
他有篮完成签到 ,获得积分10
14秒前
00111完成签到,获得积分20
15秒前
Freya1528应助映菱采纳,获得30
15秒前
19秒前
20秒前
尊敬山兰完成签到,获得积分10
20秒前
风中幻巧完成签到,获得积分10
20秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Essentials of Carbohydrate Chemistry and Biochemistry, 4th Edition 800
Navigating Normative Orders. Interdisciplinary Perspectives 800
Organizational Behavior 510
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
CLSI VET01S-2024 Performance Standards for Antimicrobial Disk and Dilution Susceptibility Tests for Bacteria Isolated From Animals (7th Ed) 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 化学工程 工程类 有机化学 物理 复合材料 生物化学 内科学 细胞生物学 基因 遗传学 免疫学 冶金 光电子学 癌症研究
热门帖子
关注 科研通微信公众号,转发送积分 7763967
求助须知:如何正确求助?哪些是违规求助? 9308250
关于积分的说明 20304819
捐赠科研通 7348725
什么是DOI,文献DOI怎么找? 3314104
关于科研通互助平台的介绍 2463810
邀请新用户注册赠送积分活动 2328286