Skip to content

Commit f717c56

Browse files
authored
[Refactor] Phase out microTVM (#17554)
1 parent 513c2be commit f717c56

File tree

657 files changed

+145
-118342
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

657 files changed

+145
-118342
lines changed

.github/CODEOWNERSHIP

-7
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,6 @@ src/runtime/** @vinx13 @tqchen @FronzenGene @liangfu @areusch @tmoreau89 @ajtul
132132
include/tvm/runtime/** @vinx13 @tqchen @FronzenGene @liangfu @areusch @tmoreau89 @ajtulloch @masahi @kazum @ZihengJiang @junrushao1994
133133
python/tvm/runtime/** @vinx13 @tqchen @FronzenGene @liangfu @areusch @tmoreau89 @ajtulloch @masahi @kazum @ZihengJiang @junrushao1994
134134

135-
# runtime/micro
136-
src/runtime/micro/** @areusch @liangfu @tmoreau89 @manupa-arm
137-
src/runtime/crt/** @areusch @liangfu @tmoreau89 @manupa-arm
138-
include/tvm/runtime/crt/** @areusch @liangfu @tmoreau89 @manupa-arm
139-
include/tvm/runtime/micro/** @areusch @liangfu @tmoreau89 @manupa-arm
140-
python/tvm/micro/** @areusch @liangfu @tmoreau89 @manupa-arm
141-
142135
# relay
143136
src/relay/** @jroesch @slyubomirsky @icemelon @MarisaKirisame @ZihengJiang @yzhliu @vinx13 @mbrookhart @jwfromm @zhiics @anijain2305 @wweic @eqy @junrushao1994
144137
include/tvm/relay/** @jroesch @slyubomirsky @icemelon @MarisaKirisame @ZihengJiang @yzhliu @vinx13 @mbrookhart @jwfromm @zhiics @anijain2305 @wweic @eqy @junrushao1994

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,6 @@ src/runtime/hexagon/rpc/hexagon_rpc_stub.c
263263
# Local tvm-site checkout
264264
tvm-site/
265265

266-
# Generated docs files
267-
gallery/how_to/work_with_microtvm/micro_tvmc.py
268-
269266
# Test sample data files
270267
!tests/python/ci/sample_prs/*.json
271268

CMakeLists.txt

-23
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ include(cmake/utils/FindVulkan.cmake)
1212
include(cmake/utils/FindLLVM.cmake)
1313
include(cmake/utils/FindROCM.cmake)
1414
include(cmake/utils/FindRCCL.cmake)
15-
include(cmake/utils/FindEthosN.cmake)
1615
include(cmake/utils/FindNVSHMEM.cmake)
1716

1817
if(EXISTS ${CMAKE_BINARY_DIR}/config.cmake)
@@ -68,14 +67,11 @@ tvm_option(TVM_DEBUG_WITH_ABI_CHANGE "Enable debug code that may cause ABI chang
6867
tvm_option(TVM_LOG_BEFORE_THROW "Whether log before throw, for debugging purposes" OFF)
6968
tvm_option(USE_RTTI "Build with RTTI" ON)
7069
tvm_option(USE_MSVC_MT "Build with MT" OFF)
71-
tvm_option(USE_MICRO "Build with Micro TVM support" OFF)
7270
tvm_option(INSTALL_DEV "Install compiler infrastructure" OFF)
7371
tvm_option(HIDE_PRIVATE_SYMBOLS "Compile with -fvisibility=hidden." OFF)
7472
tvm_option(USE_TF_TVMDSOOP "Build with TensorFlow TVMDSOOp" OFF)
7573
tvm_option(USE_PT_TVMDSOOP "Build with PyTorch TVMDSOOp" OFF)
7674
tvm_option(USE_FALLBACK_STL_MAP "Use TVM's POD compatible Map" OFF)
77-
tvm_option(USE_ETHOSN "Build with Arm(R) Ethos(TM)-N" OFF)
78-
tvm_option(USE_CMSISNN "Build with Arm CMSIS-NN" OFF)
7975
tvm_option(INDEX_DEFAULT_I64 "Defaults the index datatype to int64" ON)
8076
tvm_option(USE_LIBBACKTRACE "Use libbacktrace to supply linenumbers on stack traces" AUTO)
8177
tvm_option(BACKTRACE_ON_SEGFAULT "Install a signal handler to print a backtrace on segfault" OFF)
@@ -113,7 +109,6 @@ tvm_option(USE_SORT "Build with sort support" ON)
113109
tvm_option(USE_NNPACK "Build with nnpack support" OFF)
114110
tvm_option(USE_LIBTORCH "Build with libtorch support" OFF)
115111
tvm_option(USE_RANDOM "Build with random support" ON)
116-
tvm_option(USE_MICRO_STANDALONE_RUNTIME "Build with micro.standalone_runtime support" OFF)
117112
tvm_option(USE_CPP_RPC "Build CPP RPC" OFF)
118113
tvm_option(USE_IOS_RPC "Build iOS RPC" OFF)
119114
tvm_option(USE_TFLITE "Build with tflite support" OFF)
@@ -569,7 +564,6 @@ else()
569564
endif()
570565

571566
# Module rules
572-
include(cmake/modules/StandaloneCrt.cmake)
573567
include(cmake/modules/CUDA.cmake)
574568
include(cmake/modules/Hexagon.cmake) # This must come before logging.cmake
575569
include(cmake/modules/contrib/CLML.cmake) # Must be before OpenCL.cmake
@@ -579,10 +573,6 @@ include(cmake/modules/Vulkan.cmake)
579573
include(cmake/modules/Metal.cmake)
580574
include(cmake/modules/ROCM.cmake)
581575
include(cmake/modules/LLVM.cmake)
582-
include(cmake/modules/Micro.cmake)
583-
include(cmake/modules/contrib/EthosN.cmake)
584-
include(cmake/modules/contrib/CMSISNN.cmake)
585-
include(cmake/modules/contrib/EthosU.cmake)
586576
include(cmake/modules/contrib/BLAS.cmake)
587577
include(cmake/modules/contrib/CODEGENC.cmake)
588578
include(cmake/modules/contrib/DNNL.cmake)
@@ -591,7 +581,6 @@ include(cmake/modules/contrib/CUTLASS.cmake)
591581
include(cmake/modules/contrib/ExampleTargetHooks.cmake)
592582
include(cmake/modules/contrib/Random.cmake)
593583
include(cmake/modules/contrib/Posit.cmake)
594-
include(cmake/modules/contrib/MicroStandaloneRuntime.cmake)
595584
include(cmake/modules/contrib/MSCCLPP.cmake)
596585
include(cmake/modules/contrib/Sort.cmake)
597586
include(cmake/modules/contrib/NNPack.cmake)
@@ -682,15 +671,6 @@ include(cmake/modules/Logging.cmake)
682671

683672
include(cmake/modules/contrib/PAPI.cmake)
684673

685-
if(USE_MICRO)
686-
# NOTE: cmake doesn't track dependencies at the file level across subdirectories. For the
687-
# Unix Makefiles generator, need to add these explicit target-level dependency)
688-
add_dependencies(tvm_runtime arduino)
689-
add_dependencies(tvm_runtime crt)
690-
add_dependencies(tvm_runtime host_standalone_crt)
691-
add_dependencies(tvm_runtime zephyr)
692-
endif()
693-
694674
if(USE_CPP_RPC)
695675
add_subdirectory("apps/cpp_rpc")
696676
endif()
@@ -817,9 +797,6 @@ if(GTEST_FOUND)
817797
target_link_libraries(cpptest PRIVATE ${LLVM_LIBS})
818798
endif()
819799
endif()
820-
if(DEFINED ETHOSN_RUNTIME_LIBRARY)
821-
target_link_libraries(cpptest PRIVATE ${ETHOSN_RUNTIME_LIBRARY})
822-
endif()
823800
set_target_properties(cpptest PROPERTIES EXCLUDE_FROM_ALL 1)
824801
set_target_properties(cpptest PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD 1)
825802
if(USE_RELAY_DEBUG)

apps/cpp_rpc/CMakeLists.txt

-8
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,6 @@ if (BUILD_FOR_ANDROID AND USE_HEXAGON)
6161
list(APPEND TVM_RPC_LINKER_LIBS cdsprpc log)
6262
endif()
6363

64-
if(USE_ETHOSN)
65-
if (ETHOSN_RUNTIME_LIBRARY)
66-
list(APPEND TVM_RPC_LINKER_LIBS ${ETHOSN_RUNTIME_LIBRARY})
67-
else()
68-
message(WARNING "Could not locate Arm(R) Ethos(TM)-N runtime library components")
69-
endif()
70-
endif()
71-
7264
if(BUILD_STATIC_RUNTIME)
7365
list(APPEND TVM_RPC_LINKER_LIBS -Wl,--whole-archive tvm_runtime -Wl,--no-whole-archive)
7466
else()

apps/cpp_rtvm/CMakeLists.txt

-8
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,6 @@ if (BUILD_FOR_ANDROID AND USE_HEXAGON)
7171
list(APPEND RTVM_LINKER_LIBS cdsprpc log)
7272
endif()
7373

74-
if(USE_ETHOSN)
75-
if (ETHOSN_RUNTIME_LIBRARY)
76-
list(APPEND RTVM_LINKER_LIBS ${ETHOSN_RUNTIME_LIBRARY})
77-
else()
78-
message(WARNING "Could not locate Arm(R) Ethos(TM)-N runtime library components")
79-
endif()
80-
endif()
81-
8274
if(BUILD_STATIC_RUNTIME)
8375
list(APPEND RTVM_LINKER_LIBS -Wl,--whole-archive tvm_runtime -Wl,--no-whole-archive z)
8476
else()

apps/microtvm/README.md

-29
This file was deleted.

apps/microtvm/arduino/README.md

-18
This file was deleted.

apps/microtvm/arduino/template_project/Makefile.template

-64
This file was deleted.

apps/microtvm/arduino/template_project/boards.json

-92
This file was deleted.

apps/microtvm/arduino/template_project/launch_microtvm_api_server.sh

-43
This file was deleted.

0 commit comments

Comments
 (0)