Skip to contentSkip to conversation

arm-compute-library: Machine Learning library for ARM.

PATCH New Qin Su 1 participant 1 message Aug 27, 2018

lore
Share & tools
lore

Qin Su

author
#0 lore raw

PATCH 1/1 arm-compute-library: Machine Learning library for ARM.

The ARM Computer Vision and Machine Learning library is a set of functions optimised for both ARM CPUs and GPUs using SIMD technologies.

---
 .../arm-compute-library/arm-compute-library.bb     | 42 ++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library.bb
meta-arago-extras/recipes-support/arm-compute-library/arm-compute-library.bb new file +42 -0
new file mode 100644
index 0000000..b26ab8b
@@ -0,0 +1,42 @@
+DESCRIPTION = "The ARM Computer Vision and Machine Learning library is a set of functions optimised for both ARM CPUs and GPUs."
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e2c93841b20cd522af621cabaea3aef8"
+
+SRC_URI = " \
+    git://github.com/ARM-software/ComputeLibrary.git \
+"
+
+SRC_URI[md5sum] = "d84471fbefd077bac76ea188f633a640"
+SRC_URI[sha256sum] = "b92ab52a0e3253e5f5f67b12bd5e8ca4bfb49a3f88ec823c858063aebb1f3aae"
+
+SRCREV = "e2542c9f35ca427286822cd0c9296f49914f78b0"
+
+S = "${WORKDIR}/git"
+
+do_compile_prepend() {
+    unset CC CXX
+}
+do_install_prepend() {
+    unset CC CXX
+}
+
+inherit scons
+
+EXTRA_OESCONS = "arch=armv7a extra_cxx_flags="-fPIC" benchmark_tests=1 validation_tests=0 neon=1 openmp=1 opencl=0"
+
+LIBS += "-larmpl_lp64_mp"
+
+do_install() {
+    #which install
+
+    install -d ${D}/usr/lib
+    cp -rf ${S}/build/*.so ${D}/usr/lib
+    install -d ${D}${datadir}/${PN}
+    cp -rf ${S}/. ${D}${datadir}/${PN}
+}
+
+INSANE_SKIP_${PN}-dev = "dev-elf"
+
+PACKAGES =+ "${PN}-source"
+FILES_${PN}-source = "${datadir}/${PN}"
+
Signature · 1 line
1.9.1