TVM on windows. Setup.py problem

I tried installing tvm on windows but when I try to use python setup.py install --user I get the following: (base) C:\Users\User\Desktop\Incubator-tvm\tvm\python>python setup.py install --user Traceback (most recent call last): File “setup.py”, line 61, in LIB_LIST, version = get_lib_path() File “setup.py”, line 49, in get_lib_path lib_path = libinfo’find_lib_path’ File “./tvm/_ffi/libinfo.py”, line 132, in find_lib_path raise RuntimeError(message) RuntimeError: Cannot find the files.

What is the problem here? I also am unsure about whether I installed llvm from source code right.

Are the TVM dlls (tvm.dll, topi.dll and tvm_runtime.dll) in your PATH environment var?

Hi, thanks for the reply. I somehow don’t even see them. How would I get them?

Those are the output files from when you build from source. They should be in a sub-directory of where the cmake files generated the visual studio project files.

Did you build the C++ code?

Hi, sorry for the late reply.

I did try to build from source but I don’t actually know whether it worked. Could you give me a scratch step by step instruction what to do from the beginning? I think I just try to deinstall everything and do it again. I think that is easier?

I tried following this site: https://llvm.org/docs/CMake.html and installed llvm from source but got the following after the command $ cmake --build . --target install

CMake Error at cmake_install.cmake:36 (file): file INSTALL cannot make directory “C:/Program Files (x86)/LLVM/include/llvm”: No such file or directory.

– Installing: C:/Program Files (x86)/LLVM/include/llvm

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommo n.targets(138,5): error MSB3073: The command "setlocal [C:\Users\User\Desktop\Lab_TVM\mybuilddir\install. vcxproj]

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommo n.targets(138,5): error MSB3073: “C:\Program Files (x86)\cmake-3.17.0-win64-x64\cmake-3.17.0-win64-x64\bi n\cmake.exe” -DBUILD_TYPE=Debug -P cmake_install.cmake [C:\Users\User\Desktop\Lab_TVM\mybuilddir\install. vcxproj]

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommo n.targets(138,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Users\User\Desktop\Lab_TVM\mybuild dir\install.vcxproj]

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommo n.targets(138,5): error MSB3073: :cmEnd [C:\Users\User\Desktop\Lab_TVM\mybuilddir\install.vcxproj]

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommo n.targets(138,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [C:\Users\User \Desktop\Lab_TVM\mybuilddir\install.vcxproj]

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommo n.targets(138,5): error MSB3073: :cmErrorLevel [C:\Users\User\Desktop\Lab_TVM\mybuilddir\install.vcxproj]

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommo n.targets(138,5): error MSB3073: exit /b %1 [C:\Users\User\Desktop\Lab_TVM\mybuilddir\install.vcxproj]

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommo n.targets(138,5): error MSB3073: :cmDone [C:\Users\User\Desktop\Lab_TVM\mybuilddir\install.vcxproj]

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommo n.targets(138,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [C:\Users\User\Desktop\Lab_TVM\mybuild dir\install.vcxproj]

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommo n.targets(138,5): error MSB3073: :VCEnd" exited with code 1. [C:\Users\User\Desktop\Lab_TVM\mybuilddir\in stall.vcxproj]

I have some notes here, but they are a bit dated, and some things were specific to my custom branch. But it may give you some hints