-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[BYOC] add multi functions support in partition pass #8464
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@leandron the tests in Ethos-N are failed due to the change of function names by this PR. I asked @zxy844288792 to disable them to unblock the CI. Please feel free to re-enable them later on.
Thanks for letting me know. We’ll have a look tomorrow. 👍🏻 |
I'll have a look. If we can hold off momentary I might be able to fix this patch. |
The hashes need to be updated. I got most of the way through that; I will finish this on Monday. |
Thanks @zxy844288792. |
* add support for multi function * address commits and fix lint * fix testcases and using a set to avoid duplicate func name * fix lint
* add support for multi function * address commits and fix lint * fix testcases and using a set to avoid duplicate func name * fix lint
* add support for multi function * address commits and fix lint * fix testcases and using a set to avoid duplicate func name * fix lint
* add support for multi function * address commits and fix lint * fix testcases and using a set to avoid duplicate func name * fix lint
If a module contains multiple functions, the partition pass fail with this kind of message:
Check failed: (!module_->ContainGlobalVar(fname)) is false: Global function ccompiler_0 already exists
The reason of that is due to for each function in the module we maintain a AnnotatedRegion object and reset the region_id which region_id is used to form the subfunction name. Here introduces the new naming which will also use the function name to form the final subfunction name.
Thanks for contributing to TVM! Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers by @ them in the pull request thread.