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][Zephyr] Add 'config_main_stack_size' option to API server #9026

Merged
merged 11 commits into from
Sep 23, 2021

Conversation

mehrdadh
Copy link
Member

  • When using API server in for external project, sometime we need to set main stack size for zephyr board if model is large. This PR adds this option to Zephyr project API.
  • In addition, this PR moves zephyr board properties to a json file to create a single source for board information for testing purposes.
  • Finally, this PR adds a validation check for projectOption passed to api server.

cc @areusch @gromero

waiting for #9018 before merging this.

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 @mehrdadh

tests/micro/zephyr/test_zephyr.py Outdated Show resolved Hide resolved
tests/micro/zephyr/conftest.py Outdated Show resolved Hide resolved
Copy link
Contributor

@gromero gromero left a comment

Choose a reason for hiding this comment

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

Hi @mehrdadh Thanks for the change. Looks good overall.

Please see my comments inline. And a nit in the title: I think it should be:
[microTVM][Zephyr] Add 'main_stack_size' option to API server

Cheers

tests/micro/zephyr/test_zephyr.py Outdated Show resolved Hide resolved
python/tvm/micro/project.py Show resolved Hide resolved
python/tvm/micro/project.py Outdated Show resolved Hide resolved
@mehrdadh mehrdadh changed the title [microtvm][Zephyr] Add MAIN_STACK_SIZE option to API server [microTVM][Zephyr] Add 'main_stack_size' option to API server Sep 17, 2021
@mehrdadh
Copy link
Member Author

@gromero thanks for the review. I addressed the comments. PTAL.

Copy link
Contributor

@gromero gromero left a comment

Choose a reason for hiding this comment

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

@mehrdadh Thanks for addressing the comments. There is only one remaining issue in the code that was not caught by the CI (PTAL at the inline comments) and a nit in the PR title. Otherwise LGTM.

tests/micro/zephyr/test_zephyr.py Show resolved Hide resolved
tests/micro/zephyr/test_zephyr.py Show resolved Hide resolved
@mehrdadh mehrdadh changed the title [microTVM][Zephyr] Add 'main_stack_size' option to API server [microTVM][Zephyr] Add 'config_main_stack_size' option to API server Sep 20, 2021
@mehrdadh
Copy link
Member Author

waiting for CI fix: #9050

@gromero
Copy link
Contributor

gromero commented Sep 20, 2021

@mehrdadh LGTM, thanks! Once CI is happy with it I'm happy too.

PS: that branch is still failing on disco board on test_autotune_conv2d but the error is not related to the changes in this PR. It seems the error was introduced with AutoTVM patchset. Anyway, I've filed #9049 to keep track of it.

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.

@mehrdadh please fix the CI issue

@areusch
Copy link
Contributor

areusch commented Sep 21, 2021

blocked on #9013

@areusch areusch merged commit 73c2845 into apache:main Sep 23, 2021
@mehrdadh mehrdadh deleted the add_stack_api_server branch September 23, 2021 15:55
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.

3 participants