You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2021/01/18 14:01:29 UTC

[tvm] branch main updated: Add QEMU setup to uTVM tutorial. (#7296)

This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 09bb60a  Add QEMU setup to uTVM tutorial. (#7296)
09bb60a is described below

commit 09bb60ac096a143f681a21f18e6693f7c00e6731
Author: Matt Welsh (OctoML) <63...@users.noreply.github.com>
AuthorDate: Mon Jan 18 06:01:09 2021 -0800

    Add QEMU setup to uTVM tutorial. (#7296)
---
 docker/install/ubuntu_install_qemu.sh |  0
 tutorials/micro/micro_reference_vm.py | 15 ++++++++++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/docker/install/ubuntu_install_qemu.sh b/docker/install/ubuntu_install_qemu.sh
old mode 100644
new mode 100755
diff --git a/tutorials/micro/micro_reference_vm.py b/tutorials/micro/micro_reference_vm.py
index bcef6a0..07d2940 100644
--- a/tutorials/micro/micro_reference_vm.py
+++ b/tutorials/micro/micro_reference_vm.py
@@ -140,6 +140,19 @@ Once the VM has been provisioned, tests can executed using ``poetry``:
 
 .. code-block:: bash
 
-    $ poetry run python3 tests/micro/qemu/test_zephyr.py --microtvm-platforms=stm32f746xx
+    $ cd apps/microtvm/reference-vm/zephyr
+    $ poetry run python3 ../../../../tests/micro/qemu/test_zephyr.py --microtvm-platforms=stm32f746xx
+
+If you do not have physical hardware attached, but wish to run the tests using the
+local QEMU emulator running within the VM, run the following commands instead:
+
+.. code-block:: bash
+
+    $ cd /Users/yourusername/path/to/tvm
+    $ sudo ./docker/install/ubuntu_install_qemu.sh
+    $ cd apps/microtvm/reference-vm/zephyr/
+    $ poetry run pytest ../../../../tests/micro/qemu/test_zephyr.py --microtvm-platforms=host
+
+
 
 """