apache / tvm

Open deep learning compiler stack for cpu, gpu and specialized accelerators
https://tvm.apache.org/
Apache License 2.0
11.76k stars 3.47k forks source link

[Tracking Issue] Write schedules for RISC-V targets #10141

Closed areusch closed 1 month ago

areusch commented 2 years ago

We added initial support for RISC-V in microTVM by proving that we can run regression tests against the Zephyr RISC-V target (backed by QEMU). However, we have not yet added support for any V- or P- extension SIMD instructions to provide more interesting performance numbers out of the box. This issue tracks adding those schedules, which involves:

PhilippvK commented 2 years ago

I've recently worked with RISC-V vector instructions using these simulators:

Both of them are only ISS, e.g. not cycle accurate, but that should not be an issue.


Another thing I would like to point out is that the vectorization support in the RISC-V GCC toolchain seems to be "(References: 1 2 3). Thus, one should switch to using LLVM/Clang instead (LLVM also supports all RVV intrinsics).