Skip to content

Latest commit

 

History

History

onert-micro

onert-micro

onert-micro(a.k.a luci-micro) is MCU specialized build of luci-interpreter with several benchmark applications.

Contents

onert-micro contains cmake infrastructure to build:

  • stand-alone interpreter library
  • benchmark applications using luci interpreter on arm MCUs

How to build stand alone library

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.

Prerequisites

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

Known issues

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.

How to use

TBD