On Fri, 2022-08-12 at 11:54 +0200, Zoltan Boszormenyi via
lists.yoctoproject.org wrote:
> From: Zoltán Böszörményi <[email protected]>
> 
> I ran into this build error during do_compile on Kirkstone with
> OpenCL enabled after commit 50829fc9:
> 
> > Re-run cmake no build system arguments
> > ...
> > -- GPU support is enabled (OpenCL)
> > -- Looking for CL_VERSION_2_1
> > -- Looking for CL_VERSION_2_1 - not found
> > -- Looking for CL_VERSION_2_0
> > -- Looking for CL_VERSION_2_0 - not found
> > -- Looking for CL_VERSION_1_2
> > -- Looking for CL_VERSION_1_2 - not found
> > -- Looking for CL_VERSION_1_1
> > -- Looking for CL_VERSION_1_1 - not found
> > -- Looking for CL_VERSION_1_0
> > -- Looking for CL_VERSION_1_0 - not found
> > -- Found OpenCL headers:
> > CMake Error at .../openvino-inference-engine/2022.1-r0/recipe-
> > sysroot-native/usr/share/cmake-
> > 3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
> >   Could NOT find OpenCL (missing: OpenCL_LIBRARY
> > OpenCL_INCLUDE_DIR)
> > Call Stack (most recent call first):
> >   .../openvino-inference-engine/2022.1-r0/recipe-sysroot-
> > native/usr/share/cmake-
> > 3.22/Modules/FindPackageHandleStandardArgs.cmake:594
> > (_FPHSA_FAILURE_MESSAGE)
> >   cmake/FindOpenCL.cmake:163 (find_package_handle_standard_args)
> >   cmake/OpenCL.cmake:35 (find_package)
> >   CMakeLists.txt:120 (include)
> 
> Fix this by moving the values for OpenCL_LIBRARY and
> OpenCL_INCLUDE_DIR
> from PACKAGECONFIG[opencl] to EXTRA_OECMAKE in a conditional setting.

I don't understand the difference between these two.
PACKAGECONFIG_CONFARGS are appended to EXTRA_OECMAKE so they should
already be there even in the original change?

Thanks,

Anuj

> 
> There's still a small detection issue in do_compile after this:
> -- Looking for CL_VERSION_2_1
> -- Looking for CL_VERSION_2_1 - not found
> -- Looking for CL_VERSION_2_0
> -- Looking for CL_VERSION_2_0 - not found
> -- Looking for CL_VERSION_1_2
> -- Looking for CL_VERSION_1_2 - found
> 
> whereas in log.do_configure:
> -- Looking for CL_VERSION_2_2
> -- Looking for CL_VERSION_2_2 - found
> 
> Signed-off-by: Zoltán Böszörményi <[email protected]>
> ---
>  .../recipes-support/opencv/openvino-inference-engine_2022.1.bb | 3
> ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/dynamic-layers/openembedded-layer/recipes-
> support/opencv/openvino-inference-engine_2022.1.bb b/dynamic-
> layers/openembedded-layer/recipes-support/opencv/openvino-inference-
> engine_2022.1.bb
> index 4595835f..ff45eec3 100644
> --- a/dynamic-layers/openembedded-layer/recipes-
> support/opencv/openvino-inference-engine_2022.1.bb
> +++ b/dynamic-layers/openembedded-layer/recipes-
> support/opencv/openvino-inference-engine_2022.1.bb
> @@ -68,6 +68,7 @@ EXTRA_OECMAKE += " \
>                    -DSYSTEM_PROTOC=${STAGING_BINDIR_NATIVE}/protoc \
>                    -DENABLE_OV_ONNX_FRONTEND=FALSE \
>                    -DUSE_BUILD_TYPE_SUBFOLDER=OFF \
> +                  ${@bb.utils.contains('PACKAGECONFIG', 'opencl', '-
> DOpenCL_INCLUDE_DIR=${STAGING_INCDIR} -
> DOpenCL_LIBRARY=${STAGING_LIBDIR}/libOpenCL.so', '', d)} \
>                    "
>  
>  DEPENDS += "libusb1 \
> @@ -84,7 +85,7 @@ COMPATIBLE_HOST = '(x86_64).*-linux'
>  COMPATIBLE_HOST:libc-musl = "null"
>  
>  PACKAGECONFIG ?= "vpu opencl"
> -PACKAGECONFIG[opencl] = "-DENABLE_INTEL_GPU=TRUE -
> DOpenCL_INCLUDE_DIR=${STAGING_INCDIR} -
> DOpenCL_LIBRARY=${STAGING_LIBDIR}/libOpenCL.so, -
> DENABLE_INTEL_GPU=FALSE, ocl-icd opencl-headers opencl-clhpp libva,"
> +PACKAGECONFIG[opencl] = "-DENABLE_INTEL_GPU=TRUE, -
> DENABLE_INTEL_GPU=FALSE, ocl-icd opencl-headers opencl-clhpp libva,"
>  PACKAGECONFIG[python3] = "-DENABLE_PYTHON=ON -
> DPYTHON_LIBRARY=${PYTHON_LIBRARY} -
> DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR}, -DENABLE_PYTHON=OFF,
> python3-cython-native patchelf-native, python3 python3-numpy python3-
> opencv python3-progress python3-cython"
>  PACKAGECONFIG[vpu] = "-DENABLE_INTEL_MYRIAD=ON -DVPU_FIRMWARE_USB-
> MA2X8X_FILE=../mvnc/usb-ma2x8x.mvcmd -DVPU_FIRMWARE_PCIE-
> MA2X8X_FILE=../mvnc/pcie-ma2x8x.mvcmd,-
> DENABLE_INTEL_MYRIAD=OFF,,${PN}-vpu-firmware"
>  PACKAGECONFIG[verbose] = "-DVERBOSE_BUILD=1,-DVERBOSE_BUILD=0"
> 
> 
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7625): 
https://lists.yoctoproject.org/g/meta-intel/message/7625
Mute This Topic: https://lists.yoctoproject.org/mt/92976665/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to