I’m currently trying to compile TVM, I just downloaded a pre-built version of LLVM from the link provided in the documentation and added the llvm-config
path to the set(USE_LLVM /path/to/llvm-config)
parameter in build/config.make
. However, when I attempt to run cmake ..
from /build
to build TVM, I get an error that says cannot execute binary file
, pointing to the llvm-config
file. Does anyone have experience with this error?
Hi @calebpsanders, it seems that the pre-built llvm you downloaded does not match your architecture. If you are on CentOS, could you try installing llvm by following this blog?
ended up just installing using dnf install llvm-devel llvm-toolset
and setting set(USE_LLVM ON)
, thanks!
No problem, have fun!