[build] how to build the tvm binary ?

According https://tvm.hyper.ai/docs/install/from_source, I only get 3 libraries libtvm.so/ libtvm_runtime.so/libtvm_allvisible.so without a tvm binary, so my question is how to build the tvm binary ? Now I following the commands

git clone --recursive https://github.com/apache/tvm tvm
mkdir build
cp cmake/config.cmake build
cd build
cmake ..
make -j4

I try apt install tvm can get a tvm binary, but I want build a debug version with the source.

According A error when doing “import tvm” python - Apache TVM Discuss

base on my machine 10, I get expect result

import tvm

tvm.version

‘0.12.0’

  • detail steps:
      python -m venv venv
      source venv/bin/activate
      pip install apache-tvm,    https://daobook.github.io/tvm/docs/install/index.html
      pip install typing_extensions
      export TVM_LIBRARY_PATH=/home/zhongyunde/source/venv/lib/python3.10/site-packages/tvm
  • the runtime libraries libtvm.so/libtvm_runtime.so under /home/zhongyunde/source/venv/lib/python3.10/site-packages/tvm:

  • Verifying: can run successful for python matmul_expr.py uses import tvm

    git clone https://github.com/microsoft/nnfusion.git --depth=11 osdi22_artifact -b osdi22_artifact /home/zhongyunde/source/osdi22_artifact/artifacts/roller/test_config