diff options
author | Theodore Grey <theodore.grey@linaro.org> | 2020-11-04 14:50:37 +0000 |
---|---|---|
committer | Theodore Grey <theodore.grey@linaro.org> | 2020-11-04 14:50:37 +0000 |
commit | 3450eeab651e7b73cb325eca4098147a8e0dc60f (patch) | |
tree | 3362b332ffca9bb059ac49a9fbf752667bb22208 /armnn-ci-build | |
parent | 07ddb3f900648b11d72f3e48772d8bd51040c4fc (diff) |
armnn-ci-build/builders.sh : Updating Protobuf to v4.0.0 for Gerrit PR's and adding in PyArmNN support.
Signed-off-by: Theodore Grey <theodore.grey@linaro.org>
Change-Id: I36fdbbe14aca061e9348753d25e388dc986ee603
Diffstat (limited to 'armnn-ci-build')
-rw-r--r-- | armnn-ci-build/builders.sh | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/armnn-ci-build/builders.sh b/armnn-ci-build/builders.sh index 2a4c57e701..80459f2ff8 100644 --- a/armnn-ci-build/builders.sh +++ b/armnn-ci-build/builders.sh @@ -4,20 +4,18 @@ set -ex sudo apt -q=2 update sudo apt -q=2 install -y --no-install-recommends build-essential scons cmake git autoconf curl libtool libpthread-stubs0-dev -sudo apt -q=2 install -y --no-install-recommends vim-common -sudo apt -q=2 install -y --no-install-recommends python-pip python3-pip virtualenv python-dev python3-dev # Set local configuration git config --global user.email "ci_notify@linaro.org" git config --global user.name "Linaro CI" git clone --depth 1 "http://review.mlplatform.org/ml/ComputeLibrary" git clone https://github.com/Arm-software/armnn -git clone --depth 1 -b v3.5.0 https://github.com/google/protobuf.git +git clone --depth 1 -b v4.0.0-rc1 https://github.com/google/protobuf.git git clone --depth 1 https://github.com/tensorflow/tensorflow.git --branch r2.0 --single-branch git clone --depth 1 https://github.com/google/flatbuffers.git --branch v1.11.0 --single-branch wget -q https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.bz2 && tar xf boost_*.tar.bz2 #swig 4.0 -#wget -q http://prdownloads.sourceforge.net/swig/swig-4.0.2.tar.gz +wget -q http://prdownloads.sourceforge.net/swig/swig-4.0.2.tar.gz if [ -n "$GERRIT_PROJECT" ] && [ $GERRIT_EVENT_TYPE == "patchset-created" ]; then cd armnn @@ -35,11 +33,11 @@ fi #build swig4.0 for PyArmNN -#tar -xf swig-4.0.2.tar.gz && rm -rf swig-4.0.2.tar.gz -#cd ${WORKSPACE}/swig-4.0.2 -#./configure --prefix=${WORKSPACE}/swig-host --without-maximum-compile-warnings --without-pcre && -#make -#make install +tar -xf swig-4.0.2.tar.gz && rm -rf swig-4.0.2.tar.gz +cd ${WORKSPACE}/swig-4.0.2 +./configure --prefix=${WORKSPACE}/swig-host --without-maximum-compile-warnings --without-pcre && +make +make install cd ${WORKSPACE}/ComputeLibrary #need to add if loops for opencl=1 embed_kernels=1 and neon=1 @@ -87,18 +85,15 @@ cmake .. \ -DPROTOBUF_ROOT=${WORKSPACE}/protobuf-host \ -DBUILD_TF_LITE_PARSER=1 \ -DARMNNREF=1 \ + -DSWIG_EXECUTABLE=${WORKSPACE}/swig-host/bin/swig \ + -DBUILD_PYTHON_SRC=1 \ + -DBUILD_PYTHON_WHL=1 \ -DBUILD_TESTS=1 -DBUILD_UNIT_TESTS=1 \ -DTF_LITE_GENERATED_PATH=${WORKSPACE}/tensorflow/tensorflow/lite/schema \ -DFLATBUFFERS_ROOT=${WORKSPACE}/flatbuffers \ -DFLATBUFFERS_LIBRARY=${WORKSPACE}/flatbuffers/libflatbuffers.a make -j$(nproc) -#Additional cmake flags for building PyArmNN -# -DSWIG_EXECUTABLE=${WORKSPACE}/swig-host/bin/swig \ -# -DBUILD_PYTHON_SRC=1 \ -# -DBUILD_PYTHON_WHL=1 \ - - cd ${WORKSPACE} rm -rf boost_*.tar.bz2 boost_* protobuf tensorflow find ${WORKSPACE} -type f -name *.o -delete |