diff options
| author | Zoltán Böszörményi <zboszor@gmail.com> | 2026-01-13 13:09:37 +0100 |
|---|---|---|
| committer | Yogesh Tyagi <yogesh.tyagi@intel.com> | 2026-01-13 17:50:13 +0530 |
| commit | efb2dee6587e2cc06eaa59d230d118b463476b4d (patch) | |
| tree | 62fb0de75484fab5d1cebeb2b79c26828a3afbee | |
| parent | 9182026daca13f7efca0bb6ff1eacb039946c476 (diff) | |
| download | meta-intel-efb2dee6587e2cc06eaa59d230d118b463476b4d.tar.gz | |
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>
| -rw-r--r-- | conf/layer.conf | 2 | ||||
| -rw-r--r-- | dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.5.3.bb | 2 |
2 files changed, 3 insertions, 1 deletions
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" | |||
| 42 | PREFERRED_PROVIDER_libva-utils-native ?= "libva-utils-native" | 42 | PREFERRED_PROVIDER_libva-utils-native ?= "libva-utils-native" |
| 43 | PREFERRED_PROVIDER_nativesdk-libva-utils ?= "nativesdk-libva-utils" | 43 | PREFERRED_PROVIDER_nativesdk-libva-utils ?= "nativesdk-libva-utils" |
| 44 | 44 | ||
| 45 | OPENCL_BACKENDS ??= "intel-compute-runtime" | ||
| 46 | |||
| 45 | addpylib ${LAYERDIR}/lib oeqa | 47 | 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 += " \ | |||
| 38 | " | 38 | " |
| 39 | 39 | ||
| 40 | PACKAGECONFIG ??= "gpu" | 40 | PACKAGECONFIG ??= "gpu" |
| 41 | PACKAGECONFIG[gpu] = "-DDNNL_GPU_RUNTIME=OCL, , opencl-headers virtual/libopencl1, intel-compute-runtime" | 41 | PACKAGECONFIG[gpu] = "-DDNNL_GPU_RUNTIME=OCL, , opencl-headers virtual/libopencl1, ${OPENCL_BACKENDS}" |
| 42 | 42 | ||
| 43 | do_install:append () { | 43 | do_install:append () { |
| 44 | install -d ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs | 44 | install -d ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs |
