Hi Anuj,
After apply this patch, exist the following dependency chain and error:
ERROR: Nothing PROVIDES 'intel-graphics-compiler' (but
/buildarea/raid0/lsong/cd/openvino/20210508/layers/meta-intel/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_21.04.18912.bb
DEPENDS on or otherwise requires it)
intel-graphics-compiler was skipped: Add 'TOOLCHAIN = "clang"' in local.conf
And meta-clang should be present
NOTE: Runtime target 'intel-compute-runtime' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['intel-compute-runtime',
'intel-graphics-compiler']
ERROR: Required build target 'openvino-inference-engine' has no buildable
providers.
Missing or unbuildable dependency chain was: ['openvino-inference-engine',
'intel-compute-runtime', 'intel-graphics-compiler']
After add TOOLCHAIN = "clang" to local.conf, if we build
intel-graphics-compiler directly
(bitbake intel-graphics-compiler), the error will gone.
but if we build the image(bitbake core-image-sato) the error still exist,
after check "bitbake -e core-image-sato", the TOOLCHAIN will set to "gcc" by
kernel-arch.bbclass
# set /buildarea/raid0/lsong/cd/openvino/20210425/build/conf/local.conf:532
# "clang"
# set
/buildarea/raid0/lsong/cd/openvino/20210425/layers/meta-clang/classes/clang.bbclass:71
# [_defaultval] "gcc"
# set
/buildarea/raid0/lsong/cd/openvino/20210425/layers/oe-core/meta/classes/kernel-arch.bbclass:67
# "gcc"
So my question is can we remove the TOOLCHAIN check in intel-graphics-compiler?
python __anonymous() {
toolchain = d.getVar('TOOLCHAIN')
if toolchain != "clang" or 'clang-layer' not in
d.getVar('BBFILE_COLLECTIONS').split():
...
}
Another issue is if we build intel-graphics-compiler with TOOLCHAIN = "clang",
there will be
many build error like:
intel-graphics-compiler/1.0.6646-r0/git/IGC/common/../../inc/common/secure_string.h:37:32:
error: unknown warning group '-Wstringop-overflow', ignored
[-Werror,-Wunknown-warning-option]
| #pragma GCC diagnostic ignored "-Wstringop-overflow"
| ^
intel-graphics-compiler/1.0.6646-r0/git/IGC/Compiler/MetaDataApi/MetaDataObject.h:85:20:
error: returning address of local temporary object
[-Werror,-Wreturn-stack-address]
| return m_id.get();
| ^~~~~~~~~~
intel-graphics-compiler/1.0.6646-r0/git/IGC/../visa/include/JitterDataStruct.h:39:15:
error: anonymous non-C-compatible type given name for linkage purposes by
typedef declaration; add a tag name here [-Werror,-Wnon-c-typedef-for-linkage]
| typedef struct {
| ^
| FINALIZER_INFO
Did you encounter the issue above? Is it possible we do not build opencl by
default?
Thanks,
Liwei.
On 2/3/21 14:35, Anuj Mittal wrote:
> Make sure that ClDNN runtime is built by default. This would need clang
> layer to be included as well.
>
> Signed-off-by: Anuj Mittal <[email protected]>
> ---
> .../recipes-support/opencv/openvino-inference-engine_2021.2.bb | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git
> a/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2021.2.bb
>
> b/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2021.2.bb
> index 568072d7..22194467 100644
> ---
> a/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2021.2.bb
> +++
> b/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2021.2.bb
> @@ -64,7 +64,7 @@ DEPENDS += "libusb1 \
> COMPATIBLE_HOST = '(x86_64).*-linux'
> COMPATIBLE_HOST_libc-musl = "null"
>
> -PACKAGECONFIG ?= "vpu"
> +PACKAGECONFIG ?= "vpu opencl"
> 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, ocl-icd
> opencl-headers libva, 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 python3-numpy python3-opencv python3-progress
> python3-cython"
> PACKAGECONFIG[vpu] = "-DENABLE_VPU=ON
> -DVPU_FIRMWARE_USB-MA2X8X_FILE=../mvnc/usb-ma2x8x.mvcmd
> -DVPU_FIRMWARE_PCIE-MA2X8X_FILE=../mvnc/pcie-ma2x8x.mvcmd,-DENABLE_VPU=OFF,,${PN}-vpu-firmware"
>
>
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7034):
https://lists.yoctoproject.org/g/meta-intel/message/7034
Mute This Topic: https://lists.yoctoproject.org/mt/80348029/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-