Skip to content

[microTVM][Zephyr] Add 'config_main_stack_size' option to API server - #9026

Merged
areusch merged 11 commits into
apache:mainfrom
mehrdadh:add_stack_api_server
Sep 23, 2021
Merged

[microTVM][Zephyr] Add 'config_main_stack_size' option to API server#9026
areusch merged 11 commits into
apache:mainfrom
mehrdadh:add_stack_api_server

Conversation

@mehrdadh

Copy link
Copy Markdown
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.

@areuschareusch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks @mehrdadh

Comment threadapps/microtvm/zephyr/template_project/microtvm_api_server.py Outdated
Comment threadapps/microtvm/zephyr/template_project/microtvm_api_server.py Outdated
Comment threadtests/micro/zephyr/test_zephyr.py Outdated
Comment threadtests/micro/zephyr/conftest.py Outdated

@gromerogromero left a comment

Copy link
Copy Markdown
Contributor

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

Comment threadapps/microtvm/zephyr/template_project/microtvm_api_server.py Outdated
Comment threadapps/microtvm/zephyr/template_project/microtvm_api_server.py Outdated
Comment threadtests/micro/zephyr/test_zephyr.py Outdated
Comment threadpython/tvm/micro/project.py
Comment threadpython/tvm/micro/project.py Outdated
@mehrdadhmehrdadh changed the title [microtvm][Zephyr] Add MAIN_STACK_SIZE option to API server[microTVM][Zephyr] Add 'main_stack_size' option to API serverSep 17, 2021
@mehrdadh

Copy link
Copy Markdown
MemberAuthor

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

@mehrdadhmehrdadh reopened this Sep 18, 2021

@gromerogromero left a comment

Copy link
Copy Markdown
Contributor

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.

Comment threadtests/micro/zephyr/test_zephyr.py
Comment threadtests/micro/zephyr/test_zephyr.py
Comment threadapps/microtvm/zephyr/template_project/microtvm_api_server.py
@mehrdadhmehrdadh changed the title [microTVM][Zephyr] Add 'main_stack_size' option to API server[microTVM][Zephyr] Add 'config_main_stack_size' option to API serverSep 20, 2021
@mehrdadh

Copy link
Copy Markdown
MemberAuthor

waiting for CI fix: #9050

@gromero

Copy link
Copy Markdown
Contributor

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

@areuschareusch left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

blocked on #9013

@areusch
areusch merged commit 73c2845 into apache:mainSep 23, 2021
@mehrdadh
mehrdadh deleted the add_stack_api_server branch September 23, 2021 15:55
Sign up for freeto 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

@mehrdadh@gromero@areusch