onednn: Move RDEPENDS of PACKAGECONFIG[gpu] to a separate setting

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 <zboszor@gmail.com>
Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
This commit is contained in:
Zoltán Böszörményi 2026-01-13 13:09:37 +01:00 committed by Yogesh Tyagi
parent 9182026dac
commit efb2dee658
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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