=======================
Directories:
-
tools: cpp of cgra-opt
-
include/lib: c++ header/source for cgra-opt
Change your llvm install path in build_forwardopt.sh and CMakeList.txt, and run build_cgraopt.sh (recommemd to run it through ctrl+C/ctrl+v line-by-line).
Cunrrent LLVM version Commit: 4553dc46a05ec6f1e2aebcde1ce185772a26780b
Please download it from
https://github.com/llvm/llvm-project/tree/4553dc46a05ec6f1e2aebcde1ce185772a26780b
Install it with ./bash_tools/build_llvm.sh
Please download it from
https://github.com/segmentKOBE/torch-mlir-forward
To run a model on CPU + CGRA SoC with VERILATOR or VCS, install chipyard and fdra. Please follow: https://github.com/MIONkb/FDRA
Pytorch to mlir needs torch-mlir python package.