Building Arm NN

To build Arm NN:

  1. Enter the following commands:

    cd $BASEDIR/armnn
    mkdir build
    cd build
    
  2. Place the library files you require in the build directory. To place the library files, enter:

    cmake .. -DCMAKE_LINKER=/usr/bin/arm-linux-gnueabihf-ld \
    -DCMAKE_C_COMPILER=/usr/bin/arm-linux-gnueabihf-gcc \
    -DCMAKE_CXX_COMPILER=/usr/bin/arm-linux-gnueabihf-g++ \
    -DCMAKE_C_COMPILER_FLAGS=-fPIC \
    -DCMAKE_CXX_FLAGS=-mfpu=neon \
    -DARMCOMPUTE_ROOT=$BASEDIR/ComputeLibrary \
    -DARMCOMPUTE_BUILD_DIR=$BASEDIR/ComputeLibrary/build \
    -DBOOST_ROOT=$BASEDIR/boost \
    -DTF_GENERATED_SOURCES=$BASEDIR/tensorflow-protobuf \
    -DBUILD_TF_PARSER=1 \
    -DPROTOBUF_ROOT=$BASEDIR/protobuf-arm \
    -DARMCOMPUTENEON=1 \
    -DARMNNREF=1
    make
    

    Arm estimates that your virtual machine will take approximately 12 minutes to execute these commands.

Previous Next