tqchen opened a new pull request, #19593: URL: https://github.com/apache/tvm/pull/19593
## 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 ## 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 - [ ] Moving `libtvm_runtime_cuda.so` out of `lib/` — CUDA unavailable, no crash -- 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]
