Skip to contentSkip to conversation

armnn-caffe: reduced recipe size

PATCH Superseded Qin Su 2 participants 5 messages Aug 31, 2018

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Qin Su

author
#0 lore raw

v3 cover armnn-caffe: reduced recipe size

Removed local files and fetch them from GIT.

Qin Su (3):
armnn-caffe: caffe protobuf files used in building caffe models in
armnn.
armnn-tensorflow: tensorflow protobuf files used in building
tensorflow models in armnn.
armnn: ARM NN machine learning SDK.

 .../recipes-support/armnn-caffe/armnn-caffe.bb     | 18 ++++++
 .../armnn-tensorflow/armnn-tensorflow.bb           | 29 +++++++++
 .../generate_tensorflow_protobuf.sh                | 73 ++++++++++++++++++++++
 meta-arago-extras/recipes-support/armnn/armnn.bb   | 47 ++++++++++++++
 .../armnn/0001-stdlib-issue-work-around.patch      | 55 ++++++++++++++++
 5 files changed, 222 insertions(+)
 create mode 100644 meta-arago-extras/recipes-support/armnn-caffe/armnn-caffe.bb
 create mode 100644 meta-arago-extras/recipes-support/armnn-tensorflow/armnn-tensorflow.bb
 create mode 100644 meta-arago-extras/recipes-support/armnn-tensorflow/armnn-tensorflow/generate_tensorflow_protobuf.sh
 create mode 100644 meta-arago-extras/recipes-support/armnn/armnn.bb
 create mode 100644 meta-arago-extras/recipes-support/armnn/armnn/0001-stdlib-issue-work-around.patch
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH v3 1/3 armnn-caffe: caffe protobuf files used in building caffe models in armnn.

Caffe protobuf files built with protobuf version 3.2.0 and used in building caffe network models in armnn.

---
 .../recipes-support/armnn-caffe/armnn-caffe.bb         | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-arago-extras/recipes-support/armnn-caffe/armnn-caffe.bb
meta-arago-extras/recipes-support/armnn-caffe/armnn-caffe.bb new file +18 -0
new file mode 100644
index 0000000..6234474
@@ -0,0 +1,18 @@
+DESCRIPTION = "Caffe protobuf files - used in ARMNN for Caffe network models"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://README.md;md5=01b8fd7c1b9506378a45200f64d6e0d7"
+
+SRC_URI = " \
+    git://[email protected]/processor-sdk/tidl-utils.git;protocol=ssh; \
+"
+
+SRCREV = "9ae62427ad233597bf345e9572c252eedf8cc2b3"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+        install -d ${D}${datadir}/${PN}/caffe/proto/
+	cp ${S}/caffeImport/* ${D}${datadir}/${PN}/caffe/proto/.
+}
+
+
Signature · 1 line
1.9.1
#2 lore raw

Re: [PATCH v3 1/3] armnn-caffe: caffe protobuf files used in building caffe models in armnn.

Quoted 15 lines · Qin Su

Caffe protobuf files built with protobuf version 3.2.0 and used in building caffe network models in armnn.

---
 .../recipes-support/armnn-caffe/armnn-caffe.bb         | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-arago-extras/recipes-support/armnn-caffe/armnn-caffe.bb
meta-arago-extras/recipes-support/armnn-caffe/armnn-caffe.bb new file +0 -0
new file mode 100644
index 0000000..6234474

meta-arago-extras/recipes-support/armnn-caffe/armnn-caffe.bb line 6

Quoted 6 lines
meta-arago-extras/recipes-support/armnn-caffe/armnn-caffe.bb new file +6 -0
@@ -0,0 +1,18 @@
+DESCRIPTION = "Caffe protobuf files - used in ARMNN for Caffe network models"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://README.md;md5=01b8fd7c1b9506378a45200f64d6e0d7"
+
+SRC_URI = " \
+    git://[email protected]/processor-sdk/tidl-utils.git;protocol=ssh; \

NAK.

Quoted 19 lines
meta-arago-extras/recipes-support/armnn-caffe/armnn-caffe.bb new file +12 -0
+"
+
+SRCREV = "9ae62427ad233597bf345e9572c252eedf8cc2b3"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+        install -d ${D}${datadir}/${PN}/caffe/proto/
+	cp ${S}/caffeImport/* ${D}${datadir}/${PN}/caffe/proto/.
+}
+
+
Signature · 6 lines
1.9.1

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
author
#3 lore raw

PATCH v3 2/3 armnn-tensorflow: tensorflow protobuf files used in building tensorflow models in armnn.

In reply to Qin Su

Tensorflow protobuf files built with protobuf version 3.2.0 and used in building tensorflow network models in armnn.

---
 .../armnn-tensorflow/armnn-tensorflow.bb           | 29 +++++++++
 .../generate_tensorflow_protobuf.sh                | 73 ++++++++++++++++++++++
 2 files changed, 102 insertions(+)
 create mode 100644 meta-arago-extras/recipes-support/armnn-tensorflow/armnn-tensorflow.bb
 create mode 100644 meta-arago-extras/recipes-support/armnn-tensorflow/armnn-tensorflow/generate_tensorflow_protobuf.sh
meta-arago-extras/recipes-support/armnn-tensorflow/armnn-tensorflow.bb new file +29 -0
new file mode 100644
index 0000000..1787819
@@ -0,0 +1,29 @@
+DESCRIPTION = "Tensorflow protobuf files - used in ARMNN for Tensorflow network models"
+LICENSE = "Apache"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=01e86893010a1b87e69a213faa753ebd"
+
+SRC_URI = " \
+    git://github.com/tensorflow/tensorflow.git \
+    file://generate_tensorflow_protobuf.sh;subdir=${S} \
+"
+
+SRC_URI += " \
+	https://github.com/protocolbuffers/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip;name=protoc;subdir=${WORKDIR}/protoc;destsuffix=protoc \
+"
+
+SRCREV = "aed8f42bafabf11c5d92ce4109a5e0408b31f9c5"
+
+SRC_URI[protoc.md5sum] = "f0b567f781665f47afd6b5afa53cee3d"
+SRC_URI[protoc.sha256sum] = "9cf9a8661d649b8477fe0ad32a8b28d351a170a62e210bf848d90a29f1f4df9d"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+        install -d ${D}${datadir}/${PN}
+        chmod +x ${S}/generate_tensorflow_protobuf.sh
+	${S}/generate_tensorflow_protobuf.sh ${D}${datadir}/${PN} ${WORKDIR}/protoc 
+}
+
+PACKAGES =+ "${PN}-source"
+FILES_${PN}-source = "${datadir}/${PN}"
+
meta-arago-extras/recipes-support/armnn-tensorflow/armnn-tensorflow/generate_tensorflow_protobuf.sh new file +73 -0

73 lines not on this page · raw message

Signature · 1 line
1.9.1
author
#4 lore raw

PATCH v3 3/3 armnn: ARM NN machine learning SDK.

In reply to Qin Su

Arm NN SDK is a set of open-source Linux software and tools that enables machine learning workloads on power-efficient devices. Arm NN takes Caffe, TensorFlow network frameworks, translate them to the internal Arm NN formatand then, through the Compute Library, deploy them efficiently on Cortex-A CPUs.

---
 meta-arago-extras/recipes-support/armnn/armnn.bb   | 47 ++++++++++++++++++
 .../armnn/0001-stdlib-issue-work-around.patch      | 55 ++++++++++++++++++++++
 2 files changed, 102 insertions(+)
 create mode 100644 meta-arago-extras/recipes-support/armnn/armnn.bb
 create mode 100644 meta-arago-extras/recipes-support/armnn/armnn/0001-stdlib-issue-work-around.patch
meta-arago-extras/recipes-support/armnn/armnn.bb new file +47 -0
new file mode 100644
index 0000000..51bd919
@@ -0,0 +1,47 @@
+DESCRIPTION = "Linux software and tools to enable machine learning (Caffe/Tensorflow) workloads on power-efficient devices"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3e14a924c16f7d828b8335a59da64074"
+
+SRCREV = "4c7098bfeab1ffe1cdc77f6c15548d3e73274746"
+
+S = "${WORKDIR}/git"
+
+FILES_${PN}-dev += "{libdir}/cmake/*"
+
+inherit cmake
+
+SRC_URI = " \
+    git://github.com/ARM-software/armnn.git \
+    file://0001-stdlib-issue-work-around.patch \
+"
+
+DEPENDS = " \
+           boost \
+           protobuf-tidl \
+           stb \
+           arm-compute-library \
+		   armnn-caffe \
+		   armnn-tensorflow \
+"
+
+EXTRA_OECMAKE=" \
+               -DBUILD_SHARED_LIBS=ON -DREGISTER_INSTALL_PREFIX=OFF \
+               -DARMCOMPUTE_ROOT=${STAGING_DIR_HOST}${datadir}/arm-compute-library \
+               -DARMCOMPUTE_BUILD_DIR=${STAGING_DIR_HOST}${datadir}/arm-compute-library/build \
+               -DCAFFE_GENERATED_SOURCES=${STAGING_DIR_HOST}${datadir}/armnn-caffe \
+               -DTF_GENERATED_SOURCES=${STAGING_DIR_HOST}${datadir}/armnn-tensorflow \
+               -DBUILD_CAFFE_PARSER=1 -DBUILD_TF_PARSER=1 \
+               -DARMCOMPUTENEON=1 \ 
+               -DBUILD_TESTS=1 -DPROFILING=1 \
+               -DTHIRD_PARTY_INCLUDE_DIRS=${STAGING_DIR_HOST}${includedir} \
+"
+
+CXXFLAGS += "-fopenmp"
+LIBS += "-larmpl_lp64_mp"
+
+INSANE_SKIP_${PN}-dev = "dev-elf"
+
+PACKAGES =+ "${PN}-bash-completion"
+FILES_${PN}-bash-completion += "${bindir}/armnn_completions.sh"
+RDEPENDS_${PN}-bash-completion = "bash bash-completion"
+
meta-arago-extras/recipes-support/armnn/armnn/0001-stdlib-issue-work-around.patch new file +55 -0

55 lines not on this page · raw message

Signature · 1 line
1.9.1