I’m trying to build and install TVM package on Windows Machine.
I’ve followed this steps for installation:
git clone --recursive https://github.com/dmlc/tvm
mkdir build
cp cmake/config.cmake build
Building LLVM from source:
mkdir mybuilddir
cd mybuilddir
cmake …
cmake --build .
cmake --build . --target install
The build is successful with llvm-config installed in C:\Program Files (x86)\LLVM\bin. And, I add this to the Windows Path variable
I then modify build/config.cmake to add set(USE_LLVM ON)
Then, I’m trying to build TVM using these commands:
mkdir build
cd build
cmake -G “Visual Studio 15 2017 Win64” -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=“Release” …
and, I’m getting this error:
– Build with RPC support…
– Build with Graph runtime support…
CMake Error at cmake/util/FindLLVM.cmake:21 (list):
list sub-command REMOVE_ITEM requires list to be present.
Call Stack (most recent call first):
cmake/modules/LLVM.cmake:5 (find_llvm)
CMakeLists.txt:171 (include)
– Build with LLVM
– Set TVM_LLVM_VERSION=00
– Configuring incomplete, errors occurred!
Apologies for this beginner level question, but how do I fix this?
I did add this: message(STATUS “LLVM_LIBS” ${LLVM_LIBS}) and it returned me an empty string for LLVM_LIBS.