buddy-compiler / buddy-benchmark

Benchmark Framework for Buddy Projects
Apache License 2.0
44 stars 34 forks source link

Compile and run deep learning benchmark on RISC-V #55

Closed xlinsist closed 1 year ago

xlinsist commented 1 year ago

Buddy-benchmark can be supported on RISC-V with decent modification. To set up, RISC-V platform-based opencv, googlebenchmark and MLIR library as well as object file(generated from .mlir) are needed. Though in this PR it is deep learning benchmark that is supported, I think this is true of all other benchmarks(e.g. ImageProcessing and Vectorization).

Contributions are as follows:

  1. Add support for deep learning benchmark(including all models and ops) on RISC-V. Cross-compilation can be triggered by CMAKE_TOOLCHAIN_FILE variable which is passed to cmake.
  2. Add riscv-toolchain.cmake file for configuration.
  3. Update README.md to show how to compile and run deep learning benchmark on RISC-V.
zhanghb97 commented 1 year ago

This PR will be moved to the buddy-mlir/examples/DLModel as an end-to-end case for the RISC-V backend. @xlinsist Please close this PR when your open the new PR in buddy-mlir.

xlinsist commented 1 year ago

The latest PR to land on DL model on RISC-V is ready to review. closing it.