aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodore Grey <theodore.grey@linaro.org>2020-02-24 16:40:43 +0100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2020-02-24 16:00:04 +0000
commit447256cdb5023884656931d3f982a69f2dd36d98 (patch)
tree1fa7a191896dd5d04fb0d7f6893c1a19376e0b1a
parent164b7a1590a670a03b7f43197f2c941e831e7235 (diff)
armnn-ci-build: fixing shellcheck errors.
-rw-r--r--automated/linux/armnn-benchmarks/armnn-mlperf.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/automated/linux/armnn-benchmarks/armnn-mlperf.sh b/automated/linux/armnn-benchmarks/armnn-mlperf.sh
index e4cfbd26..21f739ff 100644
--- a/automated/linux/armnn-benchmarks/armnn-mlperf.sh
+++ b/automated/linux/armnn-benchmarks/armnn-mlperf.sh
@@ -32,17 +32,18 @@ install_deps "${pkgs}" "${SKIP_INSTALL}"
wget "${LINK_SNAPSHOT}"
tar xf armnn.tar.xz
cd home/buildslave/workspace/armnn-ci-build || exit
-BASEDIR="${pwd}"
+BASEDIR="$(pwd)"
export BASEDIR
cd "${BASEDIR}"/armnn/build || exit
ln -s "${BASEDIR}"/protobuf-host/lib/libprotobuf.so.15.0.0 ./libprotobuf.so.15
-LD_LIBRARY_PATH="${pwd}"
+LD_LIBRARY_PATH="$(pwd)"
export LD_LIBRARY_PATH
chmod a+x UnitTests
./UnitTests
python3 -m pip install numpy ck
ck pull repo:ck-env
-ck detect soft:compiler.python --full_path=`which python3`
+PYTHON_PATH="$(which python3)"
+ck detect soft:compiler.python --full_path="${PYTHON_PATH}"
ck install package --tags=lib,python-package,numpy
echo 0 | ck install package --tags=compiler,lang-cpp
ck pull repo --url="${MLPERF}"
@@ -67,6 +68,7 @@ tar xvf dataset-imagenet-preprocessed-using-pillow.3.tar
tar xvf dataset-imagenet-preprocessed-using-pillow.4.tar
tar xvf dataset-imagenet-preprocessed-using-pillow.5.tar
+# shellcheck disable=SC2039
echo "default" | ck detect soft --tags=dataset,imagenet,preprocessed,rgb8 --extra_tags=using-opencv,custom --full_path="${BASEDIR}"/home/theodore/CK-TOOLS/dataset-imagenet-preprocessed-using-pillow/ILSVRC2012_val_00000001.rgb8
ck search env --tags=dataset,imagenet,rgb8,custom > images.txt
IMAGES=$(grep "local:env:" images.txt | sed 's/^.*://')
@@ -74,4 +76,5 @@ ck search env --tags=tflite,opencl,armnn,custom > library.txt
LIBRARY=$(grep "local:env:" library.txt | sed 's/^.*://')
ck search env --tags=compiler,lang-cpp > compiler.txt
COMPILER=$(grep "local:env:" compiler.txt | sed 's/^.*://')
+# shellcheck disable=SC2039
echo "-1" | ck benchmark program:image-classification-armnn-tflite --repetitions=1 --env.CK_BATCH_SIZE=1 --env.CK_BATCH_COUNT=500 --record --record_repo=local --record_uoa=mlperf-mobilenet-armnn-tflite-accuracy-500 --tags=image-classification,mlperf,mobilenet,armnn-tflite,accuracy,500 --skip_print_timers --skip_stat_analysis --process_multi_keys --deps.compiler="${COMPILER}" --deps.library="${LIBRARY}" --deps.images="${IMAGES}"