aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2019-11-12 09:24:05 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2019-11-29 06:41:59 +0800
commit835f58cfbc90f9fee1abeb47c840fcbbac5fc9bc (patch)
treef04f681d369883f974ff7a4a47c91b9620cb9d4a
parentb7bfdc347c1ed477e7842354d0ab5b8e2d76775a (diff)
downloadmeta-intel-835f58cfbc90f9fee1abeb47c840fcbbac5fc9bc.tar.gz
meta-intel-835f58cfbc90f9fee1abeb47c840fcbbac5fc9bc.tar.bz2
meta-intel-835f58cfbc90f9fee1abeb47c840fcbbac5fc9bc.zip
dldt-inference-engine: install custom opencl kernels as well
Install the OpenCL kernels and cldnn_global_custom_kernels.xml to allow specification of OpenCL kernels for custom layers. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r3.1.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r3.1.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r3.1.bb
index c788c53b..b9767517 100644
--- a/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r3.1.bb
+++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r3.1.bb
@@ -81,6 +81,10 @@ do_install_append() {
install -D -m0644 ${S}/thirdparty/movidius/mvnc/src/97-myriad-usbboot.rules ${D}${sysconfdir}/udev/rules.d/97-myriad-usbboot.rules
fi
+
+ if ${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'true', 'false', d)}; then
+ cp -r ${S}/src/cldnn_engine/cldnn_global_custom_kernels ${D}${libdir}/
+ fi
}
do_install_ptest_base_prepend() {
@@ -103,6 +107,7 @@ FILES_${PN}-dev = "${includedir} \
FILES_${PN} += "${libdir}/lib*${SOLIBSDEV} \
${datadir}/openvino \
+ ${libdir}/cldnn_global_custom_kernels \
"
# Move inference engine samples into a separate package