armnn: bump SRCREV and add a demo example
PATCH 1/1 armnn: bump SRCREV and add a demo example
updated to the latest version of 18.08
updated to generate versioned library
created a demo example with mobileNet
--- .../0003-add-more-test-command-arguments.patch | 74 ++ .../armnn/0004-generate-versioned-library.patch | 62 ++ .../0005-add-armnn-mobilenet-test-example.patch | 68 ++ .../armnn/0006-armnn-mobilenet-test-example.patch | 862 +++++++++++++++++++++ .../recipes-support/armnn/armnn_git.bb | 31 +- 5 files changed, 1092 insertions(+), 5 deletions(-) create mode 100755 meta-arago-extras/recipes-support/armnn/armnn/0003-add-more-test-command-arguments.patch create mode 100755 meta-arago-extras/recipes-support/armnn/armnn/0004-generate-versioned-library.patch create mode 100755 meta-arago-extras/recipes-support/armnn/armnn/0005-add-armnn-mobilenet-test-example.patch create mode 100755 meta-arago-extras/recipes-support/armnn/armnn/0006-armnn-mobilenet-test-example.patch
meta-arago-extras/recipes-support/armnn/armnn/0003-add-more-test-command-arguments.patch new file +74 -0
@@ -0,0 +1,74 @@ +From b44e2aa84c75e14f18f6d3057636a3b63ec43d85 Mon Sep 17 00:00:00 2001 +From: Qin Su <[email protected]> +Date: Thu, 25 Oct 2018 12:25:15 -0400 +Subject: [PATCH] add more test command arguments + +Signed-off-by: Qin Su <[email protected]> +--- + tests/InferenceTest.inl | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 50 insertions(+) + +diff --git a/tests/InferenceTest.inl b/tests/InferenceTest.inl +index 16df7ba..5808edb 100644 +--- a/tests/InferenceTest.inl ++++ b/tests/InferenceTest.inl +@@ -299,6 +299,56 @@ int ClassifierInferenceTestMain(int argc, + TConstructDatabaseCallable constructDatabase, + const armnn::TensorShape* inputTensorShape) + { ++ int count; ++ const char *p_input; ++ char inmodelname[500]; ++ char outtensorname[500]; ++ ++ /* parse command line */ ++ for (count = 1; count < argc; count++) ++ { ++ if (*(argv[count]) == '+') ++ { ++ p_input = argv[count] + 1; ++ switch (*(p_input)) ++ { ++ case 'i': ++ case 'I': ++ strcpy(inmodelname, p_input + 2); ++ modelFilename = &inmodelname[0]; ++ std::cout << "Input model = " << modelFilename << std::endl; ++ break; ++ case 'o': ++ case 'O': ++ strcpy(outtensorname, p_input + 2); ++ outputBindingName = &outtensorname[0]; ++ std::cout << "out tensor name = " << outputBindingName << std::endl; ++ break; ++ default: ++ break; ++ } ++ } ++ else if (*(argv[count]) == '-') ++ { ++ p_input = argv[count] + 1; ++ switch (*(p_input)) ++ { ++ case '-': ++ p_input = argv[count] + 2; ++ case 'h': ++ case 'H': ++ std::cout <<"\nAdditional Options: " << std::endl; ++ std::cout <<" +i Set user specified inference model name." << std::endl; ++ std::cout <<" If not set, default name is used." << std::endl; ++ std::cout <<" +o Set user specified output tensor name." << std::endl; ++ std::cout <<" If not set, default name is used.\n" << std::endl; ++ break; ++ default: ++ break; ++ } ++ } ++ } ++ + return InferenceTestMain(argc, argv, defaultTestCaseIds, + [=] + () +-- +1.9.1 +
meta-arago-extras/recipes-support/armnn/armnn/0004-generate-versioned-library.patch new file +62 -0
62 lines not on this page · raw message
meta-arago-extras/recipes-support/armnn/armnn/0005-add-armnn-mobilenet-test-example.patch new file +68 -0
68 lines not on this page · raw message
meta-arago-extras/recipes-support/armnn/armnn/0006-armnn-mobilenet-test-example.patch new file +862 -0
862 lines not on this page · raw message
meta-arago-extras/recipes-support/armnn/armnn_git.bb +26 -5
@@ -1,12 +1,13 @@ SUMMARY = "ARM Neural Network SDK" DESCRIPTION = "Linux software and tools to enable machine learning (Caffe/Tensorflow) workloads on power-efficient devices" -LICENSE = "MIT" +LICENSE = "MIT & Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=3e14a924c16f7d828b8335a59da64074" -PV = "20180502" +PV = "18.08" +PV_MAJOR = "${@d.getVar('PV',d,1).split('.')[0]}" BRANCH = "master" -SRCREV = "4c7098bfeab1ffe1cdc77f6c15548d3e73274746" +SRCREV = "c577f2c6a3b4ddb6ba87a882723c53a248afbeba" S = "${WORKDIR}/git"
@@ -16,8 +17,20 @@ SRC_URI = " \ git://github.com/ARM-software/armnn.git;branch=${BRANCH} \ file://0001-stdlib-issue-work-around.patch \ file://0002-enable-use-of-boost-shared-library.patch \ + file://0003-add-more-test-command-arguments.patch \ + file://0004-generate-versioned-library.patch \ + file://0005-add-armnn-mobilenet-test-example.patch \ + file://0006-armnn-mobilenet-test-example.patch \ + http://download.tensorflow.org/models/mobilenet_v1_2018_02_22/mobilenet_v1_1.0_224.tgz; \ + git://git.ti.com/tidl/tidl-api.git;name=tidl-api;branch=${BRANCH};subdir=${WORKDIR}/tidl-api;destsuffix=tidl-api \ " +SRC_URI[md5sum] = "d5f69cef81ad8afb335d9727a17c462a" +SRC_URI[sha256sum] = "1ccb74dbd9c5f7aea879120614e91617db9534bdfaa53dfea54b7c14162e126b" + +SRCREV_tidl-api = "7e9a3942ec38efd64d45e34c10cba2f2938f5618" +SRCREV_FORMAT = "armnn" + DEPENDS = " \ boost \ protobuf \
@@ -25,6 +38,7 @@ DEPENDS = " \ arm-compute-library \ armnn-caffe \ armnn-tensorflow \ + opencv \ " RDEPENDS_${PN} = " arm-compute-library protobuf boost "
@@ -39,21 +53,28 @@ EXTRA_OECMAKE=" \ -DARMCOMPUTENEON=1 \ -DBUILD_TESTS=1 -DPROFILING=1 \ -DTHIRD_PARTY_INCLUDE_DIRS=${STAGING_DIR_HOST}${includedir} \ + -DBUILD_ARMNN_EXAMPLES=1 \ + -DGENERIC_LIB_VERSION=${PV} -DGENERIC_LIB_SOVERSION=${PV_MAJOR} \ " +TESTVECS_INSTALL_DIR = "${datadir}/arm/armnn" + do_install_append() { CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" install -d ${D}${bindir} find ${WORKDIR}/build/tests -maxdepth 1 -type f -executable -exec cp $CP_ARGS {} ${D}${bindir} \; cp $CP_ARGS ${WORKDIR}/build/UnitTests ${D}${bindir} + install -d ${D}${TESTVECS_INSTALL_DIR}/models + cp ${WORKDIR}/mobilenet_v1_1.0_224_frozen.pb ${D}${TESTVECS_INSTALL_DIR}/models + cp ${WORKDIR}/git/tests/TfMobileNet-Armnn/labels.txt ${D}${TESTVECS_INSTALL_DIR}/models + install -d ${D}${TESTVECS_INSTALL_DIR}/testvecs + cp ${WORKDIR}/tidl-api/examples/classification/clips/test2.mp4 ${D}${TESTVECS_INSTALL_DIR}/testvecs chrpath -d ${D}${bindir}/* } CXXFLAGS += "-fopenmp" LIBS += "-larmpl_lp64_mp" -SOLIBS = ".so" -FILES_SOLIBSDEV = "" FILES_${PN} += "{bindir}/*" FILES_${PN} += "{libdir}/*" FILES_${PN}-dev += "{libdir}/cmake/*"
Signature · 1 line
1.9.1
Quoted 3 lines · Qin Su
updated to the latest version of 18.08
updated to generate versioned library
created a demo example with mobileNet
Same comment about missing Upstream-Status for new patches.
Quoted 12 lines
Signed-off-by Qin Su <[email protected]>--- .../0003-add-more-test-command-arguments.patch | 74 ++ .../armnn/0004-generate-versioned-library.patch | 62 ++ .../0005-add-armnn-mobilenet-test-example.patch | 68 ++ .../armnn/0006-armnn-mobilenet-test-example.patch | 862 +++++++++++++++++++++ .../recipes-support/armnn/armnn_git.bb | 31 +- 5 files changed, 1092 insertions(+), 5 deletions(-) create mode 100755 meta-arago-extras/recipes-support/armnn/armnn/0003-add-more-test-command-arguments.patch create mode 100755 meta-arago-extras/recipes-support/armnn/armnn/0004-generate-versioned-library.patch create mode 100755 meta-arago-extras/recipes-support/armnn/armnn/0005-add-armnn-mobilenet-test-example.patch create mode 100755 meta-arago-extras/recipes-support/armnn/armnn/0006-armnn-mobilenet-test-example.patch
[snip]
meta-arago-extras/recipes-support/armnn/armnn_git.bb line 4
Quoted 10 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb +1
-1@@ -1,12 +1,13 @@ SUMMARY = "ARM Neural Network SDK" DESCRIPTION = "Linux software and tools to enable machine learning (Caffe/Tensorflow) workloads on power-efficient devices" -LICENSE = "MIT" +LICENSE = "MIT & Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=3e14a924c16f7d828b8335a59da64074"
Did the license change? Also, need a checksum for Apache-2.0 too.
meta-arago-extras/recipes-support/armnn/armnn_git.bb SRC_URI = " \ · line 17
Quoted 12 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb +3
-2-PV = "20180502" +PV = "18.08" +PV_MAJOR = "${@d.getVar('PV',d,1).split('.')[0]}" BRANCH = "master" -SRCREV = "4c7098bfeab1ffe1cdc77f6c15548d3e73274746" +SRCREV = "c577f2c6a3b4ddb6ba87a882723c53a248afbeba" S = "${WORKDIR}/git"@@ -16,8 +17,20 @@ SRC_URI = " \ git://github.com/ARM-software/armnn.git;branch=${BRANCH} \
Might want to add "name=armnn" above since used in SRCREV_FORMAT.
meta-arago-extras/recipes-support/armnn/armnn_git.bb SRC_URI = " \ · line 24
Quoted 7 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb +5
-0file://0001-stdlib-issue-work-around.patch \ file://0002-enable-use-of-boost-shared-library.patch \ + file://0003-add-more-test-command-arguments.patch \ + file://0004-generate-versioned-library.patch \ + file://0005-add-armnn-mobilenet-test-example.patch \ + file://0006-armnn-mobilenet-test-example.patch \ + http://download.tensorflow.org/models/mobilenet_v1_2018_02_22/mobilenet_v1_1.0_224.tgz; \
Might want to add "name=mobilenet" for use in SRC_URI[md5sum/sha256sum]
Quoted 58 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb +17
-2+ git://git.ti.com/tidl/tidl-api.git;name=tidl-api;branch=${BRANCH};subdir=${WORKDIR}/tidl-api;destsuffix=tidl-api \ " +SRC_URI[md5sum] = "d5f69cef81ad8afb335d9727a17c462a" +SRC_URI[sha256sum] = "1ccb74dbd9c5f7aea879120614e91617db9534bdfaa53dfea54b7c14162e126b" + +SRCREV_tidl-api = "7e9a3942ec38efd64d45e34c10cba2f2938f5618" +SRCREV_FORMAT = "armnn" + DEPENDS = " \ boost \ protobuf \@@ -25,6 +38,7 @@ DEPENDS = " \ arm-compute-library \ armnn-caffe \ armnn-tensorflow \ + opencv \ " RDEPENDS_${PN} = " arm-compute-library protobuf boost "@@ -39,21 +53,28 @@ EXTRA_OECMAKE=" \ -DARMCOMPUTENEON=1 \ -DBUILD_TESTS=1 -DPROFILING=1 \ -DTHIRD_PARTY_INCLUDE_DIRS=${STAGING_DIR_HOST}${includedir} \ + -DBUILD_ARMNN_EXAMPLES=1 \ + -DGENERIC_LIB_VERSION=${PV} -DGENERIC_LIB_SOVERSION=${PV_MAJOR} \ " +TESTVECS_INSTALL_DIR = "${datadir}/arm/armnn" + do_install_append() { CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" install -d ${D}${bindir} find ${WORKDIR}/build/tests -maxdepth 1 -type f -executable -exec cp $CP_ARGS {} ${D}${bindir} \; cp $CP_ARGS ${WORKDIR}/build/UnitTests ${D}${bindir} + install -d ${D}${TESTVECS_INSTALL_DIR}/models + cp ${WORKDIR}/mobilenet_v1_1.0_224_frozen.pb ${D}${TESTVECS_INSTALL_DIR}/models + cp ${WORKDIR}/git/tests/TfMobileNet-Armnn/labels.txt ${D}${TESTVECS_INSTALL_DIR}/models + install -d ${D}${TESTVECS_INSTALL_DIR}/testvecs + cp ${WORKDIR}/tidl-api/examples/classification/clips/test2.mp4 ${D}${TESTVECS_INSTALL_DIR}/testvecs chrpath -d ${D}${bindir}/* } CXXFLAGS += "-fopenmp" LIBS += "-larmpl_lp64_mp" -SOLIBS = ".so" -FILES_SOLIBSDEV = "" FILES_${PN} += "{bindir}/*" FILES_${PN} += "{libdir}/*" FILES_${PN}-dev += "{libdir}/cmake/*"Signature · 6 lines
1.9.1 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 10 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, November 19, 2018 3:32 PM
To: Su, Qin
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] armnn: bump SRCREV and add a demo example
Quoted 6 lines
Quoted 2 lines · Qin Su
updated to the latest version of 18.08 updated to generate versioned library created a demo example with mobileNet
Same comment about missing Upstream-Status for new patches.
Fixed in patch v2
Quoted 35 lines
Quoted 6 lines
Signed-off-by Qin Su <[email protected]>--- .../0003-add-more-test-command-arguments.patch | 74 ++ .../armnn/0004-generate-versioned-library.patch | 62 ++ .../0005-add-armnn-mobilenet-test-example.patch | 68 ++ .../armnn/0006-armnn-mobilenet-test-example.patch | 862+++++++++++++++++++++
Quoted 4 lines
.../recipes-support/armnn/armnn_git.bb | 31 +- 5 files changed, 1092 insertions(+), 5 deletions(-) create mode100755 meta-arago-extras/recipes-support/armnn/armnn/0003-add-more-test-
comma
Quoted 2 lines
nd-arguments.patch create mode 100755 meta-arago-extras/recipes-support/armnn/armnn/0004-generate-
versioned-
Quoted 2 lines
library.patch create mode 100755 meta-arago-extras/recipes-support/armnn/armnn/0005-add-armnn-
mobilenet
Quoted 2 lines
-test-example.patch create mode 100755 meta-arago-extras/recipes-support/armnn/armnn/0006-armnn-mobilenet-
tes
Quoted 1 line
t-example.patch
[snip]
meta-arago-extras/recipes-support/armnn/armnn_git.bb line 2
Quoted 8 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb +0
-0@@ -1,12 +1,13 @@ SUMMARY = "ARM Neural Network SDK" DESCRIPTION = "Linux software and tools to enable machine learning(Caffe/Tensorflow) workloads on power-efficient devices"
Quoted 7 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb
Quoted 3 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb +1
-1-LICENSE = "MIT" +LICENSE = "MIT & Apache-2.0" LIC_FILES_CHKSUM ="file://LICENSE;md5=3e14a924c16f7d828b8335a59da64074"
Did the license change? Also, need a checksum for Apache-2.0 too.
No license change.
Added checksum for Apache-2.0 in patch v2
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb +3
-2-PV = "20180502" +PV = "18.08" +PV_MAJOR = "${@d.getVar('PV',d,1).split('.')[0]}" BRANCH = "master" -SRCREV = "4c7098bfeab1ffe1cdc77f6c15548d3e73274746" +SRCREV = "c577f2c6a3b4ddb6ba87a882723c53a248afbeba"
Quoted 7 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb SRC_URI = " \ · line 17
Quoted 4 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb +0
-0S = "${WORKDIR}/git"@@ -16,8 +17,20 @@ SRC_URI = " \ git://github.com/ARM-software/armnn.git;branch=${BRANCH} \Might want to add "name=armnn" above since used in
SRCREV_FORMAT.
Added "name=armnn" in patch v2
Quoted 9 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb SRC_URI = " \ · line 33
Quoted 8 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb +6
-0file://0001-stdlib-issue-work-around.patch \ file://0002-enable-use-of-boost-shared-library.patch \ + file://0003-add-more-test-command-arguments.patch \ + file://0004-generate-versioned-library.patch \ + file://0005-add-armnn-mobilenet-test-example.patch \ + file://0006-armnn-mobilenet-test-example.patch \ + +http://download.tensorflow.org/models/mobilenet_v1_2018_02_22/mobile
Quoted 5 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb SRC_URI = " \ · line 26
Quoted 1 line
meta-arago-extras/recipes-support/armnn/armnn_git.bb +1
-0+ net_v1_1.0_224.tgz; \Might want to add "name=mobilenet" for use in
SRC_URI[md5sum/sha256sum]
Added "name=mobilenet" in patch v2
Quoted 66 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb SRC_URI = " \ · line 33
Quoted 7 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb +5
-0+ + git://git.ti.com/tidl/tidl-api.git;name=tidl-api;branch=${BRANCH};su + bdir=${WORKDIR}/tidl-api;destsuffix=tidl-api \ " +SRC_URI[md5sum] = "d5f69cef81ad8afb335d9727a17c462a" +SRC_URI[sha256sum] ="
1ccb74dbd9c5f7aea879120614e91617db9534bdfaa53dfea54b7c14162e126b"Quoted 16 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb +5
-0+ +SRCREV_tidl-api = "7e9a3942ec38efd64d45e34c10cba2f2938f5618" +SRCREV_FORMAT = "armnn" + DEPENDS = " \ boost \ protobuf \@@ -25,6 +38,7 @@ DEPENDS = " \ arm-compute-library \ armnn-caffe \ armnn-tensorflow \ + opencv \ " RDEPENDS_${PN} = " arm-compute-library protobuf boost "meta-arago-extras/recipes-support/armnn/armnn_git.bb EXTRA_OECMAKE=" \ · line 57
Quoted 5 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb +2
-0@@ -39,21 +53,28 @@ EXTRA_OECMAKE=" \ -DARMCOMPUTENEON=1 \ -DBUILD_TESTS=1 -DPROFILING=1 \ -DTHIRD_PARTY_INCLUDE_DIRS=${STAGING_DIR_HOST}${includedir} \ + -DBUILD_ARMNN_EXAMPLES=1 \ + -DGENERIC_LIB_VERSION=${PV} -DGENERIC_LIB_SOVERSION=${PV_MAJOR} \
meta-arago-extras/recipes-support/armnn/armnn_git.bb EXTRA_OECMAKE=" \
Quoted 8 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb +2
-0" +TESTVECS_INSTALL_DIR = "${datadir}/arm/armnn" + do_install_append() { CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" install -d ${D}${bindir} find ${WORKDIR}/build/tests -maxdepth 1 -type f -executable -exec cp$CP_ARGS {} ${D}${bindir} \;
meta-arago-extras/recipes-support/armnn/armnn_git.bb EXTRA_OECMAKE=" \
Quoted 3 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb +2
-0cp $CP_ARGS ${WORKDIR}/build/UnitTests ${D}${bindir} + install -d ${D}${TESTVECS_INSTALL_DIR}/models + cp ${WORKDIR}/mobilenet_v1_1.0_224_frozen.pb${D}${TESTVECS_INSTALL_DIR}/models
meta-arago-extras/recipes-support/armnn/armnn_git.bb EXTRA_OECMAKE=" \ · line 69
Quoted 1 line
meta-arago-extras/recipes-support/armnn/armnn_git.bb +1
-0+ cp ${WORKDIR}/git/tests/TfMobileNet-Armnn/labels.txt${D}${TESTVECS_INSTALL_DIR}/models
Quoted 21 lines
meta-arago-extras/recipes-support/armnn/armnn_git.bb +3
-3+ install -d ${D}${TESTVECS_INSTALL_DIR}/testvecs + cp ${WORKDIR}/tidl-api/examples/classification/clips/test2.mp4 + ${D}${TESTVECS_INSTALL_DIR}/testvecs chrpath -d ${D}${bindir}/* } CXXFLAGS += "-fopenmp" LIBS += "-larmpl_lp64_mp" -SOLIBS = ".so" -FILES_SOLIBSDEV = "" FILES_${PN} += "{bindir}/*" FILES_${PN} += "{libdir}/*" FILES_${PN}-dev += "{libdir}/cmake/*" --1.9.1
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago