You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/12/01 21:30:24 UTC
[GitHub] [tvm] gromero opened a new pull request #9632: [TVMC] micro, run: Disable micro support when USE_MICRO=OFF
gromero opened a new pull request #9632:
URL: https://github.com/apache/tvm/pull/9632
Do not generate 'tvmc micro' subcommand and disable micro device option
in 'tvmc run' when TVM is built without support for microTVM, i.e. with
set(USE_MICRO OFF).
Otherwise tvmc will crash on importing any `tvm.micro` module / class. For instance:
```
gromero@amd:~/git/tvm/build$ tvmc -h
Traceback (most recent call last):
File "/home/gromero/git/tvm/python/tvm/micro/session.py", line 35, in <module>
from .base import _rpc_connect
ImportError: cannot import name '_rpc_connect' from 'tvm.micro.base' (/home/gromero/git/tvm/python/tvm/micro/base.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/__init__.py", line 22, in <module>
from . import micro
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/micro.py", line 26, in <module>
import tvm.micro.project as project
File "/home/gromero/git/tvm/python/tvm/micro/__init__.py", line 28, in <module>
from .session import (
File "/home/gromero/git/tvm/python/tvm/micro/session.py", line 37, in <module>
raise ImportError("micro tvm is not enabled. Set USE_MICRO to ON in config.cmake")
ImportError: micro tvm is not enabled. Set USE_MICRO to ON in config.cmake
gromero@amd:~/git/tvm/build$
```
For any user, which is bad specially for the ones not interested in using `tvmc` for micro targets.
--
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] gromero commented on pull request #9632: [TVMC] micro, run: Disable micro support when USE_MICRO=OFF
Posted by GitBox <gi...@apache.org>.
gromero commented on pull request #9632:
URL: https://github.com/apache/tvm/pull/9632#issuecomment-984072030
cc @areusch @leandron @mehrdadh for reviews.
--
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] leandron merged pull request #9632: [TVMC] micro, run: Disable micro support when USE_MICRO=OFF
Posted by GitBox <gi...@apache.org>.
leandron merged pull request #9632:
URL: https://github.com/apache/tvm/pull/9632
--
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] leandron commented on pull request #9632: [TVMC] micro, run: Disable micro support when USE_MICRO=OFF
Posted by GitBox <gi...@apache.org>.
leandron commented on pull request #9632:
URL: https://github.com/apache/tvm/pull/9632#issuecomment-985060948
Thanks @gromero @ZQPei and @mehrdadh!
--
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] leandron commented on pull request #9632: [TVMC] micro, run: Disable micro support when USE_MICRO=OFF
Posted by GitBox <gi...@apache.org>.
leandron commented on pull request #9632:
URL: https://github.com/apache/tvm/pull/9632#issuecomment-985060677
So given @ZQPei agreement in #9619, let merge this one.
--
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