You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[REFACTOR][RUNTIME] Introduce src/runtime/extra/ for libtvm_runtime_extra
The sources that feed the libtvm_runtime_extra build target — disco and
contrib — were scattered at the runtime top level alongside sources that
feed libtvm_runtime. Making them a subdir makes the build-target boundary
visible from the file system.
Moves:
- src/runtime/disco/ → src/runtime/extra/disco/
- src/runtime/contrib/ → src/runtime/extra/contrib/
Public headers under include/tvm/runtime/disco/ are NOT moved — they are
consumed by core runtime (vm/paged_kv_cache.cc) and do not belong in the
extra-private source tree.
All internal relative includes that previously traversed from
src/runtime/{disco,contrib}/<pkg>/ to sibling runtime directories
(cuda/, opencl/, rocm/, memory/, etc.) have had one extra `../` added to
account for the deeper nesting.
CMake updates:
- CMakeLists.txt: all src/runtime/{disco,contrib}/ path strings updated
- cmake/modules/CUDA.cmake, ROCM.cmake: contrib glob paths updated
- cmake/modules/contrib/{AMX,BLAS,CLML,CoreML,CUTLASS,DNNL,ExampleNPU,
NNAPI,Random,Sort,TensorRT,vllm}.cmake: all paths updated
External references:
- src/relax/backend/contrib/codegen_json/codegen_json.h: two includes of
runtime/contrib/json/ updated to runtime/extra/contrib/json/
- web/emcc/wasm_runtime.cc: sort.cc amalgamation include updated
0 commit comments