Open jchia opened 8 months ago
From the llvm github repo, it appears that llvm-17 has llvm/Support/Host.h
but llvm-18 and llvm-19 do not.
I met the same error for combination of (TVM v0.15.0, llvm-18). Upgrade tvm and compile TVM v0.18.0 with llvm-18 works fine for me.
Install from Source
The page at https://tvm.apache.org/docs/install/from_source.html says this about LLVM:
Additions/Changes Requested
But I cannot figure out which versions of LLVM are acceptable. On Ubuntu 20.04, I have clang-12 and llvm-12-dev installed from the official Ubuntu focal-updates repo, as well as clang-19 and libpolly-19-dev installed from
http://apt.llvm.org/focal/ llvm-toolchain-focal main
.In my config.cmake, I tried setting
USE_LLVM
to/usr/lib/llvm-12/bin/llvm-config
and/usr/lib/llvm-19/bin/llvm-config
for ninja builds. Neither worked.With 12:
With 19:
Could you clarify:
USE_LLVM
in the config.cmake or something else. E.g. do we need to do something about andCMAKE_C_COMPILER
orCMAKE_CXX_COMPILER
to point them to clang?Triage