[meta-intel] [PATCH] dldt-inference-engine: install custom opencl kernels as well
Anuj Mittal
anuj.mittal at intel.com
Mon Nov 11 17:31:27 PST 2019
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 at intel.com>
---
.../recipes-support/opencv/dldt-inference-engine_2019r3.1.bb | 5 +++++
1 file changed, 5 insertions(+)
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
--
2.21.0
More information about the meta-intel
mailing list