diff options
| author | Yogesh Tyagi <yogesh.tyagi@intel.com> | 2026-01-31 01:56:44 +0530 |
|---|---|---|
| committer | Yogesh Tyagi <yogesh.tyagi@intel.com> | 2026-02-01 23:16:16 +0800 |
| commit | c43850a0a54e51b98f60cafd03babff1990592ad (patch) | |
| tree | 591638d18e7b72995b8103b1923656e66c6133e3 | |
| parent | fccc3e98572e983368a9e1c25523d38a90f01d04 (diff) | |
| download | meta-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.bb | 4 |
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 | ||
| 20 | RDEPENDS:${PN} += " intel-graphics-compiler gmmlib" | 20 | RDEPENDS:${PN} += " intel-graphics-compiler gmmlib" |
| 21 | 21 | ||
| 22 | # Exclude mesa's OpenCL implementation (rusticl) to avoid ICD conflicts | ||
| 23 | RCONFLICTS:${PN} = "libopencl-mesa" | ||
| 24 | RPROVIDES:${PN} = "virtual-opencl-icd" | ||
| 25 | |||
| 22 | inherit cmake pkgconfig qemu | 26 | inherit cmake pkgconfig qemu |
| 23 | 27 | ||
| 24 | COMPATIBLE_HOST = '(x86_64).*-linux' | 28 | COMPATIBLE_HOST = '(x86_64).*-linux' |
