You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "mehrdadh (via GitHub)" <gi...@apache.org> on 2023/03/02 19:43:27 UTC
[GitHub] [tvm] mehrdadh opened a new pull request, #14179: [CRT][microTVM]Use AoTExecutor by default for CRT runtime
mehrdadh opened a new pull request, #14179:
URL: https://github.com/apache/tvm/pull/14179
This PR changes default `executor` to `None` at `relay.build` and set the default inside the function based on the runtime.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] Mousius commented on pull request #14179: [Draft][CRT][microTVM]Use AoTExecutor by default for CRT runtime
Posted by "Mousius (via GitHub)" <gi...@apache.org>.
Mousius commented on PR #14179:
URL: https://github.com/apache/tvm/pull/14179#issuecomment-1468569866
As with other compilers, ahead of time compilation can be applied to a much broader scope than just embedded and the graph executor does work in more constrained environments, is there any reason to limit AoT to just embedded scenarios?
Considering a broader set of users, it makes sense to work from the interface, to the backend runtime we provide. If you have a user who starts out using the Graph executor, then decides to try using the C runtime, they'll suddenly find they've got an unwanted change in their application interface; as an end user, I would consider this unexpected behaviour and consider raising a bug given it impacted my application in a weird way.
Having to link a different runtime by default (AOT infers C runtime) is also slightly irritating, but far less strange than a runtime change causing a users application to suddenly require changes.
As an aside, the goal of reducing the number of arguments required is a good one, do we know which functions in the C++ runtime can't be implemented in the C runtime? If the C++ runtime was just a set of C wrappers the user wouldn't even need to choose?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] areusch commented on pull request #14179: [Draft][CRT][microTVM]Use AoTExecutor by default for CRT runtime
Posted by "areusch (via GitHub)" <gi...@apache.org>.
areusch commented on PR #14179:
URL: https://github.com/apache/tvm/pull/14179#issuecomment-1468482950
@Mousius i think it's two angles to the same problem: GraphExecutor isn't a great choice with the C runtime. However, you can in practice use AOT with the C++ runtime. I would think in terms of which compiler config is most obvious to an embedded user, the order would be:
1. the CPU setting
2. the runtime
3. the executor
since the executor is essentially an implementation detail to new users (they are already expecting to be shown how to interact with TVM and wouldn't know that a priori; whereas they would certainly know they can't link a C++ malloc-laden runtime and they would expect to need to tell the compiler to target their particular class of CPUs). so in this sense it seems like it's better to auto-select executor based on runtime. thoughts?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CRT][microTVM]Use AoTExecutor by default for CRT runtime [tvm]
Posted by "mehrdadh (via GitHub)" <gi...@apache.org>.
mehrdadh closed pull request #14179: [CRT][microTVM]Use AoTExecutor by default for CRT runtime
URL: https://github.com/apache/tvm/pull/14179
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] tvm-bot commented on pull request #14179: [CRT][microTVM]Use AoTExecutor by default for CRT runtime
Posted by "tvm-bot (via GitHub)" <gi...@apache.org>.
tvm-bot commented on PR #14179:
URL: https://github.com/apache/tvm/pull/14179#issuecomment-1452453276
<!---bot-comment-->
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](https://github.com/apache/incubator-tvm/blob/master/CONTRIBUTORS.md#reviewers) by @-ing them in a comment.
<!--bot-comment-ccs-start-->
* cc @alanmacd, @gromero, @leandron, @mkatanbaf <sub>See [#10317](https://github.com/apache/tvm/issues/10317) for details</sub><!--bot-comment-ccs-end-->
<sub>Generated by [tvm-bot](https://github.com/apache/tvm/blob/main/ci/README.md#github-actions)</sub>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org