From: Yogesh Tyagi <[email protected]> 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 <[email protected]> --- .../compute-runtime/intel-compute-runtime_25.48.36300.8.bb | 4 ++++ 1 file changed, 4 insertions(+) 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" RDEPENDS:${PN} += " intel-graphics-compiler gmmlib" +# Exclude mesa's OpenCL implementation (rusticl) to avoid ICD conflicts +RCONFLICTS:${PN} = "libopencl-mesa" +RPROVIDES:${PN} = "virtual-opencl-icd" + inherit cmake pkgconfig qemu COMPATIBLE_HOST = '(x86_64).*-linux' -- 2.43.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#8703): https://lists.yoctoproject.org/g/meta-intel/message/8703 Mute This Topic: https://lists.yoctoproject.org/mt/117592183/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
