Skip to content

Commit

Permalink
VTA and TVM on PYTHONPATH, also pass to sudo (apache#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
maltanar authored and tqchen committed Jul 12, 2018
1 parent e2faf79 commit d31f58b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vta/apps/pynq_rpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,16 @@ cd ~/vta
make -j2
```

Add VTA and TVM to PYTHONPATH:
```
export PYTHONPATH=$PYTHONPATH:/home/xilinx/vta/python:/home/xilinx/vta/nnvm/tvm/python
```

The last stage will build the `vta/lib/libvta.so` library file. We are now ready to launch the RPC server on the Pynq. In order to enable the FPGA drivers, we need to run the RPC server with `sudo` privileges.
```bash
ssh xilinx@192.168.2.99 # ssh if you haven't done so
cd ~/vta
sudo ./apps/pynq_rpc/start_rpc_server.sh # pw is xilinx
sudo PYTHONPATH=$PYTHONPATH ./apps/pynq_rpc/start_rpc_server.sh # pw is xilinx
```

You should see the following being displayed when starting the RPC server:
Expand Down

0 comments on commit d31f58b

Please sign in to comment.