Instead of letting clDNN build against intel_ocl_icd prebuilt binaries
under clDNN/common/intel_ocl_icd, configure cmake build to pick up
opencl-icd-loader headers and libraries from staging directory.

Set CMAKE_BUILD_TYPE to Debug as it is propagated down to clDNN cmake
build which only supports Debug build type.

Do not set CMAKE_INSTALL_LOCAL_ONLY as it is unused.

Signed-off-by: Chin Huat Ang <chin.huat....@intel.com>
---
 .../recipes-support/opencv/dldt-inference-engine_2019r3.bb           | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r3.bb
 
b/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r3.bb
index 21b5198..8b5ab3b 100644
--- 
a/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r3.bb
+++ 
b/dynamic-layers/openembedded-layer/recipes-support/opencv/dldt-inference-engine_2019r3.bb
@@ -31,8 +31,7 @@ EXTRA_OECMAKE += " \
                   -DENABLE_GNA=0 \
                   -DPYTHON_EXECUTABLE=${PYTHON} \
                   -DTHREADING=TBB \
-                  -DCMAKE_INSTALL_LOCAL_ONLY=OFF \
-                  -DCMAKE_BUILD_TYPE=DebugWithRelInfo \
+                  -DCMAKE_BUILD_TYPE=Debug \
                   -DNGRAPH_INCLUDES=${STAGING_INCDIR}/ngraph \
                   -DENABLE_TESTS="${@bb.utils.contains('PTEST_ENABLED', '1', 
'1', '0', d)}" \
                   -DBUILD_GMOCK=1 \
@@ -54,7 +53,7 @@ COMPATIBLE_HOST = '(x86_64).*-linux'
 COMPATIBLE_HOST_libc-musl = "null"
 
 PACKAGECONFIG ?= ""
-PACKAGECONFIG[opencl] = "-DENABLE_CLDNN=1, -DENABLE_CLDNN=0, 
opencl-icd-loader, opencl-icd-loader intel-compute-runtime"
+PACKAGECONFIG[opencl] = "-DENABLE_CLDNN=1 
-DCLDNN__IOCL_ICD_INCDIRS=${STAGING_INCDIR} 
-DCLDNN__IOCL_ICD_STLDIRS=${STAGING_LIBDIR} 
-DCLDNN__IOCL_ICD_SHLDIRS=${STAGING_LIBDIR}, -DENABLE_CLDNN=0, 
opencl-icd-loader, opencl-icd-loader intel-compute-runtime"
 PACKAGECONFIG[python3] = "-DENABLE_PYTHON=ON 
-DPYTHON_LIBRARY=${PYTHON_LIBRARY} -DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR}, 
-DENABLE_PYTHON=OFF, python3-cython-native, python3"
 
 do_install_ptest_base_prepend() {
-- 
2.7.4

-- 
_______________________________________________
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel

Reply via email to