@@ -57,20 +57,13 @@ tvm_option(USE_THREADS "Build with thread support" ON)
5757tvm_option(USE_LLVM "Build with LLVM, can be set to specific llvm-config path" OFF )
5858tvm_option(USE_MLIR "Build with MLIR support" OFF )
5959tvm_option(USE_STACKVM_RUNTIME "Include stackvm into the runtime" OFF )
60- tvm_option(USE_GRAPH_EXECUTOR "Build with tiny graph executor" ON )
61- tvm_option(USE_GRAPH_EXECUTOR_CUDA_GRAPH "Build with tiny graph executor with CUDA Graph for GPUs" OFF )
62- tvm_option(USE_AOT_EXECUTOR "Build with AOT executor" ON )
63- tvm_option(USE_PROFILER "Build profiler for the VM and graph executor" ON )
6460tvm_option(USE_OPENMP "Build with OpenMP thread pool implementation" OFF )
65- tvm_option(USE_RELAY_DEBUG "Building Relay in debug mode..." OFF )
6661tvm_option(TVM_DEBUG_WITH_ABI_CHANGE "Enable debug code that may cause ABI changes" OFF )
6762tvm_option(TVM_LOG_BEFORE_THROW "Whether log before throw, for debugging purposes" OFF )
6863tvm_option(USE_RTTI "Build with RTTI" ON )
6964tvm_option(USE_MSVC_MT "Build with MT" OFF )
7065tvm_option(INSTALL_DEV "Install compiler infrastructure" OFF )
7166tvm_option(HIDE_PRIVATE_SYMBOLS "Compile with -fvisibility=hidden." OFF )
72- tvm_option(USE_TF_TVMDSOOP "Build with TensorFlow TVMDSOOp" OFF )
73- tvm_option(USE_PT_TVMDSOOP "Build with PyTorch TVMDSOOp" OFF )
7467tvm_option(USE_FALLBACK_STL_MAP "Use TVM's POD compatible Map" OFF )
7568tvm_option(INDEX_DEFAULT_I64 "Defaults the index datatype to int64" ON )
7669tvm_option(USE_LIBBACKTRACE "Use libbacktrace to supply linenumbers on stack traces" AUTO)
@@ -335,34 +328,6 @@ tvm_file_glob(GLOB CODEGEN_SRCS
335328
336329list (APPEND COMPILER_SRCS ${CODEGEN_SRCS} )
337330
338- tvm_file_glob(GLOB_RECURSE RELAY_OP_SRCS
339- src/relay/op/*.cc
340- )
341- tvm_file_glob(GLOB_RECURSE RELAY_PASS_SRCS
342- src/relay/analysis/*.cc
343- src/relay/collage/*.cc
344- src/relay/transforms/*.cc
345- src/relay/quantize/*.cc
346- )
347- tvm_file_glob(GLOB RELAY_BACKEND_SRCS
348- src/relay/backend/*.cc
349- src/relay/backend/vm/*.cc
350- src/relay/backend/aot/*.cc
351- )
352- tvm_file_glob(GLOB_RECURSE RELAY_IR_SRCS
353- src/relay/ir/*.cc
354- src/relay/printer/*.cc
355- src/relay/parser/*.cc
356- )
357- tvm_file_glob(GLOB_RECURSE RELAY_QNN_SRCS
358- src/relay/qnn/*.cc
359- )
360- list (APPEND COMPILER_SRCS ${RELAY_OP_SRCS} )
361- list (APPEND COMPILER_SRCS ${RELAY_PASS_SRCS} )
362- list (APPEND COMPILER_SRCS ${RELAY_BACKEND_SRCS} )
363- list (APPEND COMPILER_SRCS ${RELAY_IR_SRCS} )
364- list (APPEND COMPILER_SRCS ${RELAY_QNN_SRCS} )
365-
366331tvm_file_glob(GLOB DATATYPE_SRCS src/target /datatype/*.cc)
367332list (APPEND COMPILER_SRCS ${DATATYPE_SRCS} )
368333list (APPEND COMPILER_SRCS "src/target/datatype/myfloat/myfloat.cc" )
@@ -418,51 +383,6 @@ else()
418383 list (APPEND COMPILER_SRCS ${STACKVM_RUNTIME_SRCS} )
419384endif (USE_STACKVM_RUNTIME)
420385
421- # NOTE(areusch): USE_GRAPH_RUNTIME will be deleted in a future release
422- if (USE_GRAPH_RUNTIME AND NOT DEFINED USE_GRAPH_EXECUTOR)
423- message (WARNING "USE_GRAPH_RUNTIME renamed to USE_GRAPH_EXECUTOR. Please update your config.cmake" )
424- set (USE_GRAPH_EXECUTOR ${USE_GRAPH_RUNTIME} )
425- unset (USE_GRAPH_RUNTIME CACHE )
426- endif (USE_GRAPH_RUNTIME AND NOT DEFINED USE_GRAPH_EXECUTOR)
427-
428- # NOTE(areusch): USE_GRAPH_RUNTIME_DEBUG will be deleted in a future release
429- if (USE_GRAPH_RUNTIME_DEBUG AND NOT DEFINED USE_PROFILER)
430- message (WARNING "USE_GRAPH_RUNTIME_DEBUG renamed to USE_PROFILER. Please update your config.cmake" )
431- set (USE_PROFILER ${USE_GRAPH_RUNTIME_DEBUG} )
432- unset (USE_GRAPH_RUNTIME_DEBUG CACHE )
433- endif (USE_GRAPH_RUNTIME_DEBUG AND NOT DEFINED USE_PROFILER)
434-
435- if (USE_GRAPH_EXECUTOR)
436- message (STATUS "Build with Graph Executor support..." )
437- tvm_file_glob(GLOB RUNTIME_GRAPH_EXECUTOR_SRCS src/runtime/graph_executor/*.cc)
438- list (APPEND RUNTIME_SRCS ${RUNTIME_GRAPH_EXECUTOR_SRCS} )
439-
440- endif (USE_GRAPH_EXECUTOR)
441-
442- # convert old options for profiler
443- if (USE_GRAPH_EXECUTOR_DEBUG)
444- message (WARNING "USE_GRAPH_EXECUTOR_DEBUG renamed to USE_PROFILER. Please update your config.cmake" )
445- unset (USE_GRAPH_EXECUTOR_DEBUG CACHE )
446- set (USE_PROFILER ON )
447- endif ()
448- if (USE_VM_PROFILER)
449- message (WARNING "USE_VM_PROFILER renamed to USE_PROFILER. Please update your config.cmake" )
450- unset (USE_VM_PROFILER CACHE )
451- set (USE_PROFILER ON )
452- endif ()
453-
454- if (USE_PROFILER)
455- message (STATUS "Build with profiler..." )
456-
457- tvm_file_glob(GLOB RUNTIME_GRAPH_EXECUTOR_DEBUG_SRCS src/runtime/graph_executor/debug/*.cc)
458- list (APPEND RUNTIME_SRCS ${RUNTIME_GRAPH_EXECUTOR_DEBUG_SRCS} )
459- set_source_files_properties (${RUNTIME_GRAPH_EXECUTOR_SRCS}
460- PROPERTIES COMPILE_DEFINITIONS "TVM_GRAPH_EXECUTOR_DEBUG" )
461-
462- tvm_file_glob(GLOB RUNTIME_VM_PROFILER_SRCS src/runtime/vm/profiler/*.cc)
463- list (APPEND RUNTIME_SRCS ${RUNTIME_VM_PROFILER_SRCS} )
464- endif (USE_PROFILER)
465-
466386if (USE_CUDA AND USE_NCCL)
467387 message (STATUS "Build with NCCL..." )
468388 find_nccl(${USE_NCCL} )
@@ -493,13 +413,6 @@ if(USE_ROCM AND USE_RCCL)
493413 list (APPEND RUNTIME_SRCS ${RUNTIME_RCCL_SRC} )
494414endif ()
495415
496- if (USE_AOT_EXECUTOR)
497- message (STATUS "Build with AOT Executor support..." )
498- file (GLOB RUNTIME_AOT_EXECUTOR_SRCS src/runtime/aot_executor/*.cc)
499- list (APPEND RUNTIME_SRCS ${RUNTIME_AOT_EXECUTOR_SRCS} )
500-
501- endif (USE_AOT_EXECUTOR)
502-
503416# Enable ctest if gtest is available
504417if (USE_GTEST)
505418 # Check env var for backward compatibility. A better way to specify package
@@ -538,12 +451,6 @@ if(USE_GTEST)
538451 endif ()
539452endif ()
540453
541- if (USE_PIPELINE_EXECUTOR)
542- message (STATUS "Build with Pipeline Executor support..." )
543- tvm_file_glob(GLOB RUNTIME_PIPELINE_SRCS src/runtime/pipeline/*.cc)
544- list (APPEND RUNTIME_SRCS ${RUNTIME_PIPELINE_SRCS} )
545- endif (USE_PIPELINE_EXECUTOR)
546-
547454if (USE_KALLOC_ALIGNMENT)
548455 message (STATUS "Build Alloc alignment set to ${USE_KALLOC_ALIGNMENT} " )
549456 add_definitions (-DTVM_KALLOC_ALIGNMENT=${USE_KALLOC_ALIGNMENT} )
@@ -576,7 +483,6 @@ include(cmake/modules/Metal.cmake)
576483include (cmake/modules/ROCM.cmake)
577484include (cmake/modules/LLVM.cmake)
578485include (cmake/modules/contrib/BLAS.cmake)
579- include (cmake/modules/contrib/CODEGENC.cmake)
580486include (cmake/modules/contrib/DNNL.cmake)
581487include (cmake/modules/contrib/AMX.cmake)
582488include (cmake/modules/contrib/CUTLASS.cmake)
@@ -587,10 +493,7 @@ include(cmake/modules/contrib/MSCCLPP.cmake)
587493include (cmake/modules/contrib/Sort .cmake)
588494include (cmake/modules/contrib/NNPack.cmake)
589495include (cmake/modules/contrib/LibTorch.cmake)
590- include (cmake/modules/contrib/HybridDump.cmake)
591496include (cmake/modules/contrib/TFLite.cmake)
592- include (cmake/modules/contrib/TF_TVMDSOOP.cmake)
593- include (cmake/modules/contrib/PT_TVMDSOOP.cmake)
594497include (cmake/modules/contrib/CoreML.cmake)
595498include (cmake/modules/contrib/BNNS.cmake)
596499include (cmake/modules/contrib/ONNX.cmake)
@@ -604,7 +507,6 @@ include(cmake/modules/contrib/MSC.cmake)
604507include (cmake/modules/contrib/vllm.cmake)
605508include (cmake/modules/Git.cmake)
606509include (cmake/modules/LibInfo.cmake)
607- include (cmake/modules/RustExt.cmake)
608510include (cmake/modules/contrib/Mrvl.cmake)
609511
610512set (LIBINFO_FILE ${CMAKE_CURRENT_LIST_DIR} /src/support/libinfo.cc)
0 commit comments