git clone -b v0.14.0 --depth=1 --recursive http://github.com/apache/tvm tvm
E:\TVM_LLVM
├─llvm-project-llvmorg-11.0.1.zip
└─tvm
在E:
根目录下创建如上tvm_llvm文件夹,并将下载的两个包放置到文件夹内。cd E:\tvm_llvm\llvm-project-llvmorg-11.0.1\llvm\ && mkdir build && cd build && cmake ..
cd ../ && cmake --build build --config Release
cd E:\tvm_llvm\tvm && mkdir build && copy cmake\config.cmake .\build\
set(USE_CUDA ON)
set(USE_LLVM E:/tvm_llvm/llvm-project-llvmorg-11.0.1/llvm/build/Release/bin/llvm-config.exe)
cd build && cmake -A x64 -Thost=x64 ..
cd .. && cmake --build build --config Release -- /m
E:\tvm_llvm\tvm\build\Release
cd E:\tvm_llvm\tvm\python && python setup.py install
至此,win10平台安装完成!