Tensor Program Optimization for the RISC-V Vector Extension Using Probabilistic Programs
Federico Nicolas Peccia, Frederik Haxel, Oliver Bringmann

TL;DR
This paper introduces a TVM-based workflow that optimizes AI workloads for RISC-V vector units, significantly improving execution speed and reducing code size compared to existing compiler autovectorization and libraries.
Contribution
It integrates the RISC-V Vector Extension into TVM's MetaSchedule framework using probabilistic programs, enabling efficient tensor operation tuning without hand-crafted libraries.
Findings
46% average latency improvement over GCC autovectorization
29% average latency improvement over muRISCV-NN
35% faster mappings on commercial RISC-V SoC
Abstract
RISC-V provides a flexible and scalable platform for applications ranging from embedded devices to high-performance computing clusters. Particularly, its RISC-V Vector Extension (RVV) becomes of interest for the acceleration of AI workloads. But writing software that efficiently utilizes the vector units of RISC-V CPUs without expert knowledge requires the programmer to rely on the autovectorization features of compilers or hand-crafted libraries like muRISCV-NN. Smarter approaches, like autotuning frameworks, have been missing the integration with the RISC-V RVV extension, thus heavily limiting the efficient deployment of complex AI workloads. In this paper, we present a workflow based on the TVM compiler to efficiently map AI workloads onto RISC-V vector units. Instead of relying on hand-crafted libraries, we integrated the RVV extension into TVM's MetaSchedule framework, a…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsParallel Computing and Optimization Techniques · Tensor decomposition and applications · Embedded Systems Design Techniques
