This allows using a different OpenCL backend (like intel-compute-runtime-legacy1 from meta-clang-revival), or multiple ones, so the same image can support different platforms.
Signed-off-by: Zoltán Böszörményi <[email protected]> --- conf/layer.conf | 2 ++ dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.5.3.bb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/layer.conf b/conf/layer.conf index ec50c15c..a9de1e2a 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -42,4 +42,6 @@ PREFERRED_PROVIDER_libva-utils ?= "libva-utils" PREFERRED_PROVIDER_libva-utils-native ?= "libva-utils-native" PREFERRED_PROVIDER_nativesdk-libva-utils ?= "nativesdk-libva-utils" +OPENCL_BACKENDS ??= "intel-compute-runtime" + addpylib ${LAYERDIR}/lib oeqa diff --git a/dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.5.3.bb b/dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.5.3.bb index 17854ca0..3128d36e 100644 --- a/dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.5.3.bb +++ b/dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.5.3.bb @@ -38,7 +38,7 @@ EXTRA_OECMAKE += " \ " PACKAGECONFIG ??= "gpu" -PACKAGECONFIG[gpu] = "-DDNNL_GPU_RUNTIME=OCL, , opencl-headers virtual/libopencl1, intel-compute-runtime" +PACKAGECONFIG[gpu] = "-DDNNL_GPU_RUNTIME=OCL, , opencl-headers virtual/libopencl1, ${OPENCL_BACKENDS}" do_install:append () { install -d ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs -- 2.52.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#8668): https://lists.yoctoproject.org/g/meta-intel/message/8668 Mute This Topic: https://lists.yoctoproject.org/mt/117241784/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
