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

[AOT]Aot module post-test error workaround #13685

Merged
merged 3 commits into from
Jan 11, 2023

Conversation

janetsc
Copy link
Collaborator

@janetsc janetsc commented Jan 3, 2023

The deletion of the AotModule python object results in the device shutting down RPC too early, causing an assertion in the DSP. This is a temporary workaround while this is still being investigated. The workaround is to keep a reference to the AotModule object in the HexagonSession object, so it stays until the session has been shut down.

@tvm-bot
Copy link
Collaborator

tvm-bot commented Jan 3, 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

@janetsc janetsc requested a review from mehrdadh January 3, 2023 17:23
@janetsc janetsc marked this pull request as ready for review January 3, 2023 20:31
@@ -248,8 +248,8 @@ def get_aot_executor(
GraphModule :
Runtime graph module that can be used to execute the graph.
"""
aot_mod = self.load_module(module_file)
return tvm.runtime.executor.AotModule(aot_mod["default"](self.device))
Copy link
Member

Choose a reason for hiding this comment

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

Please add a github issue describing the problem and link it here. Also mention that this is a temporary fix

Copy link
Collaborator Author

@janetsc janetsc Jan 10, 2023

Choose a reason for hiding this comment

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

Thanks for the review! Filed #13741

@mehrdadh mehrdadh changed the title Aot module post-test error workaround [AOT]Aot module post-test error workaround Jan 11, 2023
@mehrdadh mehrdadh merged commit bf4fedd into apache:main Jan 11, 2023
fzi-peccia pushed a commit to fzi-peccia/tvm that referenced this pull request Mar 27, 2023
The deletion of the AotModule python object results in the device shutting down RPC too early, causing an assertion in the DSP. This is a temporary workaround while this is still being investigated. The workaround is to keep a reference to the AotModule object in the HexagonSession object, so it stays until the session has been shut down.
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