Varec-CC
Deep Learning Accelerator Stack
Introduction
- varecc/ includes varec compiler, runtime driver source files.
- examples/ includes some end-to-end examples
- models/ includes pre-built YOLO models
- hardware/ includes pre-built hardware bitstreams
- patch/ includes some patches of tvm.
Prepare & Build
- Check TVM for dependencies.
- Run
make
to clone tvm and build.
- Run
source setup.sh
to set environment variables.
- Run
pip3 install -r requirements.txt
for packages needed by examples.
Examples
Simulation
- Set “TARGET” to “sim” in varecc/config/varec_config.json
- Run
cd tvm/build && make varec
to rebuild libvarec.so
- In directory examples/, run
python3 yolo.py
On-board (PYNQ images)
- Set “TARGET” to “pynq” in varecc/config/varec_config.json
- Copy varecc/ and tvm/ (without build/) from host to PYNQ (/home/xilinx/)
- (on PYNQ, once) In directory tvm/, run
mkdir build && cp cmake/config.cmake build/ && cd build && cmake .. && make runtime varec
- (on PYNQ) In directory varecc/, run
sudo ./scripts/start_rpc.sh
to start RPC
- (on the host) In directory examples/, run
python3 yolo.py
Varec-CC
Deep Learning Accelerator Stack
Introduction
Prepare & Build
make
to clone tvm and build.source setup.sh
to set environment variables.pip3 install -r requirements.txt
for packages needed by examples.Examples
Simulation
cd tvm/build && make varec
to rebuild libvarec.sopython3 yolo.py
On-board (PYNQ images)
mkdir build && cp cmake/config.cmake build/ && cd build && cmake .. && make runtime varec
sudo ./scripts/start_rpc.sh
to start RPCpython3 yolo.py