forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VTA and TVM on PYTHONPATH, also pass to sudo (apache#42)
- Loading branch information
1 parent
f17e685
commit 975a64d
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected] # 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: | ||
|