Files
Ruihang Lai 96461a3e18 [CI][CMAKE] Install CUDA driver stub for libtvm_runtime_cuda (#19886)
The quay.io/manylinux_cuda image ships the CUDA toolkit but omits the
libcuda driver stub (cuda-driver-devel). Without it CMake's FindCUDA
leaves CUDA_CUDA_LIBRARY empty, and since a shared library links fine
with undefined symbols, libtvm_runtime_cuda built with no libcuda.so.1
dependency -- ldd/readelf did not list it -- breaking downstream use.

Install cuda-driver-devel-13-1 from the CUDA repo already configured in
the image (a ~45 KB package with no dependencies, not the full toolkit
download). The stub lands under /usr/local/cuda/.../stubs where FindCUDA
looks, so the sidecar links libcuda.so.1 again.

Also fail CMake configure with a clear error when CUDA_CUDA_LIBRARY is
unset, so a missing driver stub can never again silently ship a runtime
sidecar without its libcuda dependency.
2026-06-25 07:16:57 -04:00
..

TVM wheel packaging

The wheels are built by a standard cibuildwheel flow, configured in .github/workflows/publish_wheel.yml and pyproject.toml ([tool.cibuildwheel] and [tool.scikit-build]). This directory holds the few helper scripts that flow invokes:

  • manylinux_build_libtvm_runtime_cuda.sh — run by the build_cuda_runtime CI stage; builds the libtvm_runtime_cuda.so sidecar inside the prebuilt quay.io/manylinux_cuda image (CUDA toolkit preinstalled).
  • windows_build_libtvm_runtime_cuda.bat — the Windows equivalent (run with shell: cmd); installs the CUDA toolkit via conda and builds tvm_runtime_cuda.dll.
  • build-environment.yaml — conda environment for building the wheel.