onert-micro
(a.k.a luci-micro
) is MCU specialized build of luci-interpreter with several benchmark applications.
onert-micro contains cmake infrastructure to build:
- stand-alone interpreter library
- benchmark applications using luci interpreter on arm MCUs
Stand-alone library is simply built by luci_interpreter_micro_arm
target.
Result library will be placed in <ONE root>/build/compiler/luci-micro/standalone_arm/luci-interpreter/src/libluci_interpreter.a
.
- Everything you need for ONE project: see how-to-build-compiler.md
- arm-none-eabi-gcc and arm-none-eabi-g++ compilers
To install needed arm compilers on ubuntu:
$ sudo apt-get install gcc-arm-none-eabi
cmake build
$ cd <path to ONE>
$ mkdir build
# cd build
$ cmake ../infra/onert-micro
$ make -j$(nproc) luci_interpreter_micro_arm
Interpreter uses TensorFlow headers that produces warnings.
Linux
x86 build uses "-isystem" flag to suppress warnings from external sources,
but some old arm compilers have issues with it:
bug
-isystem
hack is disabled for MCU build, because of this MCU build is broken if -Werror
flag is set.
TBD