Hello, I’m now trying to run the demo by Arm below:
As the README suggests, I downloaded
- FVP
- cmake v3.22.1(It says 3.19.5 but it doesn’t matter right?)
- GCC for Arm
- CMSIS
I’m not sure about * Arm(R) Ethos™-U NPU driver stack but according to the options below:
it means downloading these two below right?After installing all of these and setring all the argments, --ethosu_driver_path, --ethosu)platform_path and --cmsis_path, to run ./run_demo.sh, I got the error below:
./mobilenet_v1_1.0_224_quant.tflite
[07:09:43] /home/ubuntu/workspace/tvm/src/target/target_kind.cc:191: Warning: Unable to detect CUDA version, default to "-mcpu=sm_20" instead
[07:09:43] /home/ubuntu/workspace/tvm/src/target/target_kind.cc:217: Warning: Unable to detect ROCm compute arch, default to "-mcpu=gfx900" instead
[07:09:43] /home/ubuntu/workspace/tvm/src/target/target_kind.cc:231: Warning: Unable to detect ROCm version, assuming >= 3.5
[07:09:43] /home/ubuntu/workspace/tvm/src/target/target_kind.cc:163: Warning: Unable to detect CUDA version, default to "-arch=sm_20" instead
[07:09:43] /home/ubuntu/workspace/tvm/src/target/target_kind.cc:191: Warning: Unable to detect CUDA version, default to "-mcpu=sm_20" instead
[07:09:43] /home/ubuntu/workspace/tvm/src/target/target_kind.cc:217: Warning: Unable to detect ROCm compute arch, default to "-mcpu=gfx900" instead
[07:09:43] /home/ubuntu/workspace/tvm/src/target/target_kind.cc:231: Warning: Unable to detect ROCm version, assuming >= 3.5
[07:09:43] /home/ubuntu/workspace/tvm/src/target/target_kind.cc:163: Warning: Unable to detect CUDA version, default to "-arch=sm_20" instead
[07:09:43] /home/ubuntu/workspace/tvm/src/target/target_kind.cc:191: Warning: Unable to detect CUDA version, default to "-mcpu=sm_20" instead
[07:09:43] /home/ubuntu/workspace/tvm/src/target/target_kind.cc:217: Warning: Unable to detect ROCm compute arch, default to "-mcpu=gfx900" instead
[07:09:43] /home/ubuntu/workspace/tvm/src/target/target_kind.cc:231: Warning: Unable to detect ROCm version, assuming >= 3.5
[07:09:43] /home/ubuntu/workspace/tvm/src/target/target_kind.cc:163: Warning: Unable to detect CUDA version, default to "-arch=sm_20" instead
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/ubuntu/workspace/tvm/python/tvm/driver/tvmc/__main__.py", line 24, in <module>
tvmc.main.main()
File "/home/ubuntu/workspace/tvm/python/tvm/driver/tvmc/main.py", line 100, in main
sys.exit(_main(sys.argv[1:]))
File "/home/ubuntu/workspace/tvm/python/tvm/driver/tvmc/main.py", line 93, in _main
return args.func(args)
File "/home/ubuntu/workspace/tvm/python/tvm/driver/tvmc/compiler.py", line 147, in drive_compile
compile_model(
File "/home/ubuntu/workspace/tvm/python/tvm/driver/tvmc/compiler.py", line 253, in compile_model
with tvm.transform.PassContext(config=config):
File "/home/ubuntu/workspace/tvm/python/tvm/ir/transform.py", line 96, in __init__
self.__init_handle_by_constructor__(
File "/home/ubuntu/workspace/tvm/python/tvm/_ffi/_ctypes/object.py", line 136, in __init_handle_by_constructor__
handle = __init_by_constructor__(fconstructor, args)
File "/home/ubuntu/workspace/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 260, in __init_handle_by_constructor__
raise get_last_ffi_error()
AttributeError: Traceback (most recent call last):
2: TVMFuncCall
1: tvm::runtime::TypedPackedFunc<tvm::transform::PassContext (int, tvm::runtime::Array<tvm::runtime::String, void>, tvm::runtime::Array<tvm::runtime::String, void>, tvm::runtime::Array<tvm::instrument::PassInstrument, void>, tvm::runtime::Optional<tvm::runtime::Map<tvm::runtime::String, tvm::runtime::ObjectRef, void, void> >)>::AssignTypedLambda<tvm::transform::{lambda(int, tvm::runtime::Array<tvm::runtime::String, void>, tvm::runtime::Array<tvm::runtime::String, void>, tvm::runtime::Array<tvm::instrument::PassInstrument, void>, tvm::runtime::Optional<tvm::runtime::Map<tvm::runtime::String, tvm::runtime::ObjectRef, void, void> >)#13}>(tvm::transform::{lambda(int, tvm::runtime::Array<tvm::runtime::String, void>, tvm::runtime::Array<tvm::runtime::String, void>, tvm::runtime::Array<tvm::instrument::PassInstrument, void>, tvm::runtime::Optional<tvm::runtime::Map<tvm::runtime::String, tvm::runtime::ObjectRef, void, void> >)#13}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)::{lambda(tvm::runtime::TVMArgs const&, tvm::runtime::TVMRetValue*)#1}::operator()(tvm::runtime::TVMArgs const, tvm::runtime::TVMRetValue) const
0: tvm::transform::PassConfigManager::Legalize(tvm::runtime::Map<tvm::runtime::String, tvm::runtime::ObjectRef, void, void>*)
File "/home/ubuntu/workspace/tvm/src/ir/transform.cc", line 128
AttributeError: Invalid config option 'relay.ext.ethos-u.options' candidates are: relay.fallback_device_type ,relay.backend.use_meta_schedule ,tir.noalias ,tir.is_entry_func ,tir.detect_global_barrier ,tir.HoistIfThenElse ,tir.instrument_bound_checkers ,tir.disable_vectorize ,relay.backend.use_auto_scheduler ,tir.add_lower_pass ,tir.debug_keep_trivial_loop ,tir.InjectDoubleBuffer ,tir.UnrollLoop ,tir.disable_assert ,tir.LoopPartition ,relay.FuseOps.max_depth
Could anyone give me any advice on the cause of this error?
Also when is the arm gcc compiler used? I downloaded it because the README says it’s prerequisites, but the README doesn’t say anything about gcc after installation.