Skip to contentSkip to conversation

armnn: bump SRCREV and add a demo example

PATCH Superseded Qin Su 1 participant 1 message Nov 28, 2018

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Qin Su

author
#0 lore raw

PATCH v3 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.
Added LIC_FILES_CHKSUM for mobilenet network topology. Enabled the use of arm-compute-library shared libraries.

---
Changes in PATCH v3:
1. Fixed patch files permission issue
2. Fixed LIC_FILES_CHKSUM issue of using Apache-2.0 LICENSE for mobilenet

Changes in PATCH v2:
1. Added Upstream-Status in patch files
2. Added "name=armnn" and "name=mobilenet"
3. Removed "dev-so" from INSANE_SKIP_${PN}

---
 ...0003-add-more-test-command-line-arguments.patch |  75 ++
 .../armnn/0004-generate-versioned-library.patch    |  61 ++
 .../0005-add-armnn-mobilenet-test-example.patch    |  67 ++
 .../armnn/0006-armnn-mobilenet-test-example.patch  | 886 +++++++++++++++++++++
 ...-enable-use-of-arm-compute-shared-library.patch |  31 +
 .../recipes-support/armnn/armnn_git.bb             |  43 +-
 6 files changed, 1153 insertions(+), 10 deletions(-)
 create mode 100644 meta-arago-extras/recipes-support/armnn/armnn/0003-add-more-test-command-line-arguments.patch
 create mode 100644 meta-arago-extras/recipes-support/armnn/armnn/0004-generate-versioned-library.patch
 create mode 100644 meta-arago-extras/recipes-support/armnn/armnn/0005-add-armnn-mobilenet-test-example.patch
 create mode 100644 meta-arago-extras/recipes-support/armnn/armnn/0006-armnn-mobilenet-test-example.patch
 create mode 100644 meta-arago-extras/recipes-support/armnn/armnn/0007-enable-use-of-arm-compute-shared-library.patch
meta-arago-extras/recipes-support/armnn/armnn/0003-add-more-test-command-line-arguments.patch new file +75 -0
new file mode 100644
index 0000000..bcc4a65
@@ -0,0 +1,75 @@
+From ba19ce3c785fb92077f6309db1125f1ef32cb08a Mon Sep 17 00:00:00 2001
+From: Qin Su <[email protected]>
+Date: Wed, 21 Nov 2018 15:14:24 -0500
+Subject: [PATCH] add more test command line arguments
+
+Upstream-Status: Inappropriate [TI only test code]
+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 +61 -0

61 lines not on this page · raw message

meta-arago-extras/recipes-support/armnn/armnn/0005-add-armnn-mobilenet-test-example.patch new file +67 -0

67 lines not on this page · raw message

meta-arago-extras/recipes-support/armnn/armnn/0006-armnn-mobilenet-test-example.patch new file +886 -0

886 lines not on this page · raw message

meta-arago-extras/recipes-support/armnn/armnn/0007-enable-use-of-arm-compute-shared-library.patch new file +31 -0
new file mode 100644
index 0000000..7d0d7e5
@@ -0,0 +1,31 @@
+From 38e8e4bc03a4c1ee801f6af50be94ccd971bf3eb Mon Sep 17 00:00:00 2001
+From: Qin Su <[email protected]>
+Date: Tue, 27 Nov 2018 18:15:49 -0500
+Subject: [PATCH] enable use of arm compute shared library
+
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Qin Su <[email protected]>
+---
+ cmake/GlobalConfig.cmake | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/cmake/GlobalConfig.cmake b/cmake/GlobalConfig.cmake
+index 491d87a..4cf40a2 100644
+--- a/cmake/GlobalConfig.cmake
++++ b/cmake/GlobalConfig.cmake
+@@ -285,6 +285,11 @@ if(ARMCOMPUTENEON OR ARMCOMPUTECL)
+         find_library(ARMCOMPUTE_CORE_LIBRARY_DEBUG NAMES arm_compute_core-static)
+         find_library(ARMCOMPUTE_CORE_LIBRARY_RELEASE NAMES arm_compute_core-static)
+ 
++        find_library(ARMCOMPUTE_LIBRARY_DEBUG NAMES arm_compute)
++        find_library(ARMCOMPUTE_LIBRARY_RELEASE NAMES arm_compute)
++        find_library(ARMCOMPUTE_CORE_LIBRARY_DEBUG NAMES arm_compute_core)
++        find_library(ARMCOMPUTE_CORE_LIBRARY_RELEASE NAMES arm_compute_core)
++
+         set(ARMCOMPUTE_LIBRARIES
+             debug ${ARMCOMPUTE_LIBRARY_DEBUG} ${ARMCOMPUTE_CORE_LIBRARY_DEBUG}
+             optimized ${ARMCOMPUTE_LIBRARY_RELEASE} ${ARMCOMPUTE_CORE_LIBRARY_RELEASE} )
+-- 
+1.9.1
+
meta-arago-extras/recipes-support/armnn/armnn_git.bb +33 -10

91 lines not on this page · raw message

Signature · 1 line
1.9.1