I made the tvm with pre-build llvm successfully,but when I accelerate the onnx model,“tvm._ffi.base.TVMError: [17:51:48] D:\TVM\tvm\src\codegen\codegen.cc:46: Check failed: bf != nullptr: Target llvm is not enabled” ,what should I do?
Did you set USE_LLVM
to the correct llvm-config
?
It seems that LLVM was not enabled by default and you can build from source and set USE_LLVM
as ON
or the path of your local llvm-config
.
LLVM 4.0.0
is required and you can download the pre-build files or build from source as well.