Logo image
Auto-tuning Fixed-point Precision with TVM on RISC-V Packed SIMD Extension
期刊文章   同儕審查

Auto-tuning Fixed-point Precision with TVM on RISC-V Packed SIMD Extension

Chun-Chieh Yang, Yi-Ru Chen, Hui-Hsin Liao, Yuan-Ming ChangJenq-Kuen Lee
ACM Transactions on Design Automation of Electronic Systems, 卷.28(3), 30
03/2023

摘要

Additional Key Words and PhrasesTVM fixed-point LLVM RISC-V P extension Subword SIMD Computer Science Applications Computer Graphics and Computer-Aided Design Electrical and Electronic Engineering
Today, as deep learning (DL) is applied more often in daily life, dedicated processors such as CPUs and GPUs have become very important for accelerating model executions. With the growth of technology, people are becoming accustomed to using edge devices, such as mobile phones, smart watches, and VR devices in their daily lives. A variety of technologies using DL are gradually being applied to these edge devices. However, there is a large number of computations in DL. It faces a challenging problem how to provide solutions in the edge devices. In this article, the proposed method enables a flow with the RISC-V Packed extension (P extension) in TVM. TVM, an open deep learning compiler for neural network models, is growing as a key infrastructure for DL computing. RISC-V is an open instruction set architecture (ISA) with customized and flexible features. The Packed-SIMD extension is a RISC-V extension that enables subword single-instruction multiple-data (SIMD) computations in RISC-V architectures to support fallback engines in AI computing. In the proposed flow, a fixed-point type that is supported by an integer of 16-bit type and saturation instructions is added to replace the original 32-bit float type. In addition, an auto-tuning method is proposed to use a uniform selector mechanism (USM) to find the binary point position for fixed-point type use. The tensorization feature of TVM can be used to optimize specific hardware such as subword SIMD instructions with RISC-V P extension. With our experiment on the Spike simulator, the proposed method with the USM can improve performance by approximately 2.54 to 6.15× in terms of instruction counts with little accuracy loss.

相關連結

指標

1 檢視次數

詳細資料

Logo image