The first one of TUTORIALS:relay_quick_start failed

TVMError: Traceback (most recent call last): [bt] (6) /root/tvm/build/libtvm.so(TVMFuncCall+0x65) [0x7fdba488da85] [bt] (5) /root/tvm/build/libtvm.so(std::_Function_handler<void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*), tvm::relay::backend::RelayBuildModule::GetFunction(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, tvm::runtime::ObjectPtrtvm::runtime::Object const&)::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#3}>::_M_invoke(std::_Any_data const&, tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&)+0x3a0) [0x7fdba46cac50] [bt] (4) /root/tvm/build/libtvm.so(tvm::relay::backend::RelayBuildModule::BuildRelay(tvm::IRModule, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, tvm::runtime::NDArray, std::hash<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits, std::allocator > const, tvm::runtime::NDArray> > > const&)+0x1d0e) [0x7fdba46c9b4e] [bt] (3) /root/tvm/build/libtvm.so(tvm::build(tvm::Map<tvm::runtime::String, tvm::IRModule, void, void> const&, tvm::Target const&)+0xdf) [0x7fdba416998f] [bt] (2) /root/tvm/build/libtvm.so(tvm::build(tvm::Map<tvm::Target, tvm::IRModule, void, void> const&, tvm::Target const&)+0x584) [0x7fdba4169064] [bt] (1) /root/tvm/build/libtvm.so(tvm::codegen::Build(tvm::IRModule, tvm::Target)+0xe62) [0x7fdba4206f02] [bt] (0) /root/tvm/build/libtvm.so(+0x127ddb2) [0x7fdba4205db2] File “/root/tvm/src/target/codegen.cc”, line 58 TVMError:

An internal invariant was violated during the execution of TVM. Please read TVM’s error reporting guidelines. More details can be found here: https://discuss.tvm.ai/t/error-reporting/7793.

Check failed: bf != nullptr == false: target.build.cuda is not enabled

How can I solve the problem?Thanks.

it means your tvm is not built with cuda support

you didn’t build with cuda,or maybe you can just change the code
target = tvm.target.cuda() → target = tvm.target.arm_cpu() ctx = tvm.gpu() → ctx = tvm.cpu()