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] Allow multiple runners in tuning micro models with meta-schedule #13811

Merged
merged 4 commits into from
Jan 26, 2023

Conversation

mkatanbaf
Copy link
Contributor

This PR adds support for running candidate projects on multiple physical boards when using meta-schedule to tune micro models, and helps reducing the tuning time.

@tvm-bot
Copy link
Collaborator

tvm-bot commented Jan 19, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@mkatanbaf mkatanbaf force-pushed the parallel_runners_meta_shedule branch from 2d437ce to 9676759 Compare January 20, 2023 18:21
@mkatanbaf mkatanbaf marked this pull request as ready for review January 20, 2023 19:09
@mkatanbaf
Copy link
Contributor Author

platform=platform,
options=project_options,
session_timeout_sec=120,
serial_numbers=["0", "1"],
Copy link
Member

@mehrdadh mehrdadh Jan 20, 2023

Choose a reason for hiding this comment

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

To be able to run this test in CI with physical devices, we need to pass the serial numbers. I suggest to reuse the serial_number pytest argument. We could use this argument in the format of SERIAL_1,SERIAL_2,...,SERIAL_N when we want to tune with N number of devices and parse the string in serial_number pytest argument function and return a list of serial numbers. Then we could pass the serial numbers to this function.
Then in this function you could check if serial_number arg is an empty list and set it to ["0", "1"] if it's empty.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @mehrdadh, made the change to use the serial number when available. PTAL.

Copy link
Member

@mehrdadh mehrdadh 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 adding this support!
Looks good, we only need one change for the CI

@mkatanbaf mkatanbaf force-pushed the parallel_runners_meta_shedule branch from 9676759 to cb61fc4 Compare January 23, 2023 19:18
@mkatanbaf mkatanbaf force-pushed the parallel_runners_meta_shedule branch from abddd94 to a186551 Compare January 24, 2023 00:13
@mkatanbaf
Copy link
Contributor Author

@tvm-bot rerun

@mehrdadh mehrdadh merged commit 239edb5 into apache:main Jan 26, 2023
fzi-peccia pushed a commit to fzi-peccia/tvm that referenced this pull request Mar 27, 2023
…hedule (apache#13811)

This PR adds support for running candidate projects on multiple physical boards when using meta-schedule to tune micro models, and helps reducing the tuning time.
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