OpenCL target for 32-bit arm-linux-android broken after PR #4657

target = tvm.target.create(“llvm -device=arm_cpu -mtriple=arm-linux-uclibceabi -mattr=+neon -mfloat-abi=soft”) does not work,still the same problem

AttributeError: Traceback (most recent call last): /tvm/build/libtvm.so(TVMFuncCall+0x65) [0x7fe3442fb355] /tvm/build/libtvm.so(+0x8fb24b) [0x7fe343d2c24b] /tvm/build/libtvm.so(tvm::Target::Create(tvm::runtime::String const&)+0x388) [0x7fe343d2bdf8] [bt] (2) /tvm/build/libtvm.so(tvm::Target::CreateTarget(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&)+0x336) [0x7fe343d296c6] [bt] (1) /home/wuxiaohua/tvm/build/libtvm.so(tvm::TargetIdNode::ParseAttrsFromRaw(std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&) const+0xe36) [0x7fe343d31cd6] [bt] (0) /home/wuxiaohua/tvm/build/libtvm.so(+0x8fecd2) [0x7fe343d2fcd2] system-lib model mcpu device keys libs mattr mtriple File “/home/wuxiaohua/tvm/src/target/target_id.cc”, line 271 AttributeError: Invalid config option, cannot recognize ‘mfloat-abi’. Candidates are:

what causes this result?

The output you pasted suggests that you should really check the TVM version you are using…Some steps you might need:

Step 1. Check if the path to “libtvm.so” is correct:

import tvm
print(tvm._ffi.base._LIB)

Step 2. Check the TVM git commit hash

git rev-parse HEAD

it means you did not compile against the current master.