If using Docker, start by running
```
-git clone --recursive https://github.com/apache/incubator-tvm.git
+git clone --recursive https://github.com/apache/incubator-tvm.git tvm
docker run --rm -it -v $(pwd)/tvm:/mnt tvmai/ci-cpu /bin/bash
```
then, in the container
.. code:: bash
- git clone --recursive https://github.com/apache/incubator-tvm
+ git clone --recursive https://github.com/apache/incubator-tvm tvm
cd tvm
mkdir build
cp cmake/config.cmake build
.. code:: bash
- git clone --recursive https://github.com/apache/incubator-tvm
+ git clone --recursive https://github.com/apache/incubator-tvm tvm
We can then use the following command to launch a `tvmai/demo-cpu` image.
.. code:: bash
- git clone --recursive https://github.com/apache/incubator-tvm
+ git clone --recursive https://github.com/apache/incubator-tvm tvm
For windows users who use github tools, you can open the git shell, and type the following command.
## Build TVM with NNPACK support
```bash
-git clone --recursive https://github.com/apache/incubator-tvm
+git clone --recursive https://github.com/apache/incubator-tvm tvm
```
* Set `set(USE_NNPACK ON)` in config.cmake.
mkdir <mountpoint>
sshfs xilinx@192.168.2.99:/home/xilinx <mountpoint>
cd <mountpoint>
-git clone --recursive https://github.com/apache/incubator-tvm
+git clone --recursive https://github.com/apache/incubator-tvm tvm
# When finished, you can leave the moutpoint and unmount the directory
cd ~
sudo umount <mountpoint>
#
# .. code-block:: bash
#
-# git clone --recursive https://github.com/apache/incubator-tvm
+# git clone --recursive https://github.com/apache/incubator-tvm tvm
# cd tvm
# cp cmake/config.cmake .
# sed -i "s/USE_OPENCL OFF/USE_OPENCL ON/" config.cmake
#
# .. code-block:: bash
#
-# git clone --recursive https://github.com/apache/incubator-tvm
+# git clone --recursive https://github.com/apache/incubator-tvm tvm
# cd tvm
# make runtime -j4
#
#
# .. code-block:: bash
#
-# git clone --recursive https://github.com/apache/incubator-tvm
+# git clone --recursive https://github.com/apache/incubator-tvm tvm
# cd tvm
# make runtime -j2
#
#
# .. code-block:: bash
#
-# git clone --recursive https://github.com/apache/incubator-tvm
+# git clone --recursive https://github.com/apache/incubator-tvm tvm
# cd tvm
# docker build -t tvm.demo_android -f docker/Dockerfile.demo_android ./docker
# docker run --pid=host -h tvm -v $PWD:/workspace \
#
# .. code-block:: bash
#
-# git clone --recursive https://github.com/apache/incubator-tvm
+# git clone --recursive https://github.com/apache/incubator-tvm tvm
# cd tvm
# mkdir build
# cp cmake/config.cmake build
## Setup in TVM
1. Install `verilator` and `sbt` as described above
-2. Get tvm `git clone https://github.com/apache/incubator-tvm.git`
+2. Get tvm `git clone https://github.com/apache/incubator-tvm.git tvm --recursive`
3. Build [tvm](https://docs.tvm.ai/install/from_source.html#build-the-shared-library)
## How to run VTA TSIM examples