Daily Arxiv

This is a page that curates AI-related papers published worldwide.
All content here is summarized using Google Gemini and operated on a non-profit basis.
Copyright for each paper belongs to the authors and their institutions; please make sure to credit the source when sharing.

Tensor Program Optimization for the RISC-V Vector Extension Using Probabilistic Programs

Created by
  • Haebom

Author

Federico Nicolas Peccia, Frederik Haxel, Oliver Bringmann

Outline

This paper proposes a workflow based on the TVM compiler to efficiently map AI workloads to RISC-V vector units. Instead of relying on existing handcrafted libraries or compiler-specific automatic vectorization, we integrate the RVV extension into TVM's MetaSchedule framework to optimize the performance of diverse AI workloads. Experiments on various RISC-V SoCs on FPGAs and commercial RISC-V SoCs demonstrate an average 46% improvement in execution latency compared to GCC's automatic vectorization feature, a 29% improvement compared to muRISCV-NN, and an average 35% faster mapping than LLVM. Furthermore, the generated binaries exhibit a reduced code memory footprint, making them suitable for embedded devices. The proposed workflow is open-sourced so that it can be applied to other RISC-V extensions.

Takeaways, Limitations

Takeaways:
We present a method to effectively utilize the RISC-V RVV extensions using TVM and MetaSchedule.
Experimentally demonstrating GCC's automatic vectorization and performance improvement over muRISCV-NN.
Performance improvements also confirmed on commercial RISC-V SoCs.
Suitable for embedded systems due to reduced code memory space of generated binaries.
Presenting the possibility of continuous development through open source disclosure.
Limitations:
Because these results are evaluations of specific RISC-V SoCs and AI workloads, generalizability may be limited.
Extensibility to other RISC-V extensions requires further study.
The complexity of the MetaSchedule framework can make it difficult to use and understand.
👍