tqchen opened a new pull request, #19594:
URL: https://github.com/apache/tvm/pull/19594

   ## Summary
   
   Modularize `libtvm_runtime` into per-backend shared libraries 
(`libtvm_runtime_cuda`, `libtvm_runtime_vulkan`, etc.) and 
`libtvm_runtime_extra` for contrib/disco modules.
   
   - Each backend can be built independently (`USE_CUDA=ON` produces only 
`libtvm_runtime.so` + `libtvm_runtime_cuda.so`)
   - During Python import, available backend DSOs are discovered and loaded 
automatically, with missing backends silently skipped
   - `libtvm_runtime_extra` is always produced if it has sources (disco, 
contrib modules)
   - No user-visible config flag changes — existing `USE_CUDA`, `USE_VULKAN`, 
etc. continue to work
   - Each contrib module builds as its own OBJECT lib, linked via 
`target_link_libraries` (modern CMake pattern)
   - CI artifact stashing updated to include new DSOs
   
   ## Test plan
   
   - [ ] Build with `USE_CUDA=ON` — verify `libtvm_runtime.so`, 
`libtvm_runtime_cuda.so`, `libtvm_runtime_extra.so` produced
   - [ ] `python -c "import tvm; print(tvm.cuda(0).exist)"` prints `True`
   - [ ] Runtime GPU tests pass
   - [ ] Windows build passes (MSVC dllexport/dllimport)
   - [ ] cuBLAS/cuDNN JSON runtime functions registered via 
`libtvm_runtime_extra`


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to