AnshMittal1811 / TVM_Build_for_CPP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A TVM C++ examples set

Step 1. download TVM source

bash scripts/download_tvm.sh

Step 2. build docker file

cd dockerfiles
bash build_docker.sh

Step 3. build TVM .so libs

  1. enter the docker container

  2. edit the third_party/tvm/cmake/config.cmake, set USE_LLVM to ON

  3. build TVM so libs
    run the following scripts. if the build successfully, libtvm.so and libtvm_runtime.so will be generated.

    cd third_party/tvm
    mkdir build
    cp cmake/config.cmake build
    cd build
    cmake .. && make -j

Step 4. build the examples

mkdir build
cd build
cmake .. && make -j

About

License:MIT License


Languages

Language:C++ 98.1%Language:CMake 1.7%Language:Shell 0.2%