How to build Apache TVM from source with uv
uv venv
source .venv/bin/activate
uv pip install cmake ninja setuptools cython
git clone --recursive https://github.com/apache/tvm.git
cd tvm
cmake -S . -B build -G Ninja -DUSE_MLIR=ON -DUSE_CPP_RPC=ON -DUSE_LLVM=llvm-config -DUSE_CUDA=ON -DUSE_TENSORRT_CODEGEN=ON
cmake --build build
uv pip install -e python --config-setting editable-mode=compat
python -c "import tvm; print(tvm.__version__)"