Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[microTVM] Add wait to QEMU Setup #8236

Merged
merged 6 commits into from
Jun 15, 2021
Merged

Conversation

mehrdadh
Copy link
Member

In some cases where the Zephyr project would rebuild itself, qemu would setup and wait for message from the microtvm target, however the microtvm target is not ready yet since these are happening in different processes. In this PR we add a wait to qemu to make sure they happen synchronously.

cc @areusch

python/tvm/micro/contrib/zephyr.py Outdated Show resolved Hide resolved
python/tvm/micro/contrib/zephyr.py Outdated Show resolved Hide resolved
python/tvm/micro/contrib/zephyr.py Outdated Show resolved Hide resolved
python/tvm/micro/contrib/zephyr.py Outdated Show resolved Hide resolved
Copy link
Contributor

@areusch areusch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added a couple of comments. can you add a test for the case where make fails to launch QEMU? e.g. just delete a file from the project between build and flash

python/tvm/micro/contrib/zephyr.py Outdated Show resolved Hide resolved
python/tvm/micro/contrib/zephyr.py Show resolved Hide resolved
python/tvm/micro/contrib/zephyr.py Outdated Show resolved Hide resolved
Copy link
Contributor

@areusch areusch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for writing the test! a few minor things

tests/micro/zephyr/test_zephyr_aot.py Outdated Show resolved Hide resolved
tests/micro/zephyr/test_zephyr_aot.py Outdated Show resolved Hide resolved
@mehrdadh mehrdadh force-pushed the qemu_make_wait branch 2 times, most recently from 1d9b45a to ae31405 Compare June 10, 2021 23:13
Copy link
Contributor

@areusch areusch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok just two more last things here, this looks good otherwise

python/tvm/micro/contrib/zephyr.py Outdated Show resolved Hide resolved
tests/micro/zephyr/test_zephyr_aot.py Outdated Show resolved Hide resolved
@areusch areusch merged commit 5df25cf into apache:main Jun 15, 2021
@areusch
Copy link
Contributor

areusch commented Jun 15, 2021

thanks @mehrdadh !

trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Jun 17, 2021
* add wait

* address comments

* address comments

* test added

* add suggestions

* fadd message assert for test
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Jun 17, 2021
* add wait

* address comments

* address comments

* test added

* add suggestions

* fadd message assert for test
@mehrdadh mehrdadh deleted the qemu_make_wait branch August 12, 2021 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants