-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
Description
TVM is forcing compilation with USE_MICRO ON since a recent commit even though I have no reason to compile with it.
I am using the following to compile in this environment:
RUN sed -i "s|set(USE_CUDA OFF)|set(USE_CUDA ON)|g" /home/ubuntu/tvm/build/config.cmake && sed -i "s|set(USE_LLVM OFF)|set(USE_LLVM ON)|g" /home/ubuntu/tvm/build/config.cmake && sed -i "s|set(USE_CUDNN OFF)|set(USE_CUDNN ON)|g" /home/ubuntu/tvm/build/config.cmake && sed -i "s|set(USE_CUBLAS OFF)|set(USE_CUBLAS ON)|g" /home/ubuntu/tvm/build/config.cmake && sed -i "s|set(USE_GRAPH_EXECUTOR_CUDA_GRAPH OFF)|set(USE_GRAPH_EXECUTOR_CUDA_GRAPH ON)|g" /home/ubuntu/tvm/build/config.cmake && sed -i "s|set(USE_OPENMP none)|set(USE_OPENMP gnu)|g" /home/ubuntu/tvm/build/config.cmake
Traceback:
ubuntu@3c2bc3dd6016:/external$ python3.8 tvmcompile.py
Traceback (most recent call last):
File "/home/ubuntu/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/ubuntu/tvm/python/tvm/micro/base.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tvmcompile.py", line 1, in <module>
from tvm.driver import tvmc
File "/home/ubuntu/tvm/python/tvm/driver/tvmc/__init__.py", line 22, in <module>
from . import micro
File "/home/ubuntu/tvm/python/tvm/driver/tvmc/micro.py", line 26, in <module>
import tvm.micro.project as project
File "/home/ubuntu/tvm/python/tvm/micro/__init__.py", line 28, in <module>
from .session import (
File "/home/ubuntu/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