summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYogesh Tyagi <yogesh.tyagi@intel.com>2026-01-31 01:56:44 +0530
committerYogesh Tyagi <yogesh.tyagi@intel.com>2026-02-01 23:16:16 +0800
commitc43850a0a54e51b98f60cafd03babff1990592ad (patch)
tree591638d18e7b72995b8103b1923656e66c6133e3
parentfccc3e98572e983368a9e1c25523d38a90f01d04 (diff)
downloadmeta-intel-c43850a0a54e51b98f60cafd03babff1990592ad.tar.gz
intel-compute-runtime: add conflict with libopencl-mesa
Add RCONFLICTS to prevent libopencl-mesa (mesa's rusticl) and intel-compute-runtime from being installed together. Both packages provide OpenCL ICD implementations that conflict at runtime. The conflict manifests when both ICDs are present in /etc/OpenCL/vendors/, leading to: - Multiple OpenCL platforms being detected - Wrong platform being selected by applications - Segmentation faults due to LLVM version conflicts between rusticl and intel-compute-runtime - intel-compute-runtime tests failing Add RPROVIDES for virtual-opencl-icd so intel-compute-runtime can satisfy OpenCL ICD dependencies from other packages (e.g., intel-oneapi-dpcpp-cpp-runtime). This ensures only one OpenCL implementation is active, preventing runtime conflicts for all users. Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
-rw-r--r--dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_25.48.36300.8.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_25.48.36300.8.bb b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_25.48.36300.8.bb
index 2d8b6475..c1209e33 100644
--- a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_25.48.36300.8.bb
+++ b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_25.48.36300.8.bb
@@ -19,6 +19,10 @@ DEPENDS += " intel-graphics-compiler gmmlib libva qemu-native"
19 19
20RDEPENDS:${PN} += " intel-graphics-compiler gmmlib" 20RDEPENDS:${PN} += " intel-graphics-compiler gmmlib"
21 21
22# Exclude mesa's OpenCL implementation (rusticl) to avoid ICD conflicts
23RCONFLICTS:${PN} = "libopencl-mesa"
24RPROVIDES:${PN} = "virtual-opencl-icd"
25
22inherit cmake pkgconfig qemu 26inherit cmake pkgconfig qemu
23 27
24COMPATIBLE_HOST = '(x86_64).*-linux' 28COMPATIBLE_HOST = '(x86_64).*-linux'