Iām compiling TVM on Windows with LLVM built from source but I get this error:
Cannot open include file: 'llvm/ExecutionEngine/MCJIT.h': No such file or directory (compiling source file C:\Users\Alexa\Applications\incubator-tvm\src\codegen\llvm\codegen_amdgpu.cc) tvm C:\Users\Alexa\Applications\incubator-tvm\src\codegen\llvm\llvm_common.h
I successfully compiled LLVM and linked llvm-config in CMake.
I tried both LLVM 9.0 and 6.1, compiled in VS 2019
1 Like
I have had success with LLVM 8 and 9.
In both cases, I do not use the llvm-config as it does not seem to play nice with multi-config VS projects (Debug/Release).
I set āUSE_LLVM
ā to āON
ā and set āLLVM_DIR
ā to āC:/build/llvm/winx64/lib/cmake/llvm
ā, which is the dir with LLVMConfig.cmake
. I build both Debug and Release builds of LLVM (if you plan on having both debug / release builds of TVM).
2 Likes
Thanks that seemed to make it work 
1 Like
Thanks a gazillion times guys.
This solved my issue as well.