Skip to content

Fix OpenCL Snippet for Ubuntu 22.04: Use intel-opencl-icd Instead of beignet-opencl-icd #6

@andoniroldan

Description

@andoniroldan

Hi NaoDevils team,

When generating a NaoImage on Ubuntu 22.04 and using the opencl snippet, the script currently tries to install beignet-opencl-icd, which is no longer available in Ubuntu 22.04 (it has been removed from the repositories).

To ensure compatibility with all supported Ubuntu versions, you could update the snippet to check the OS version and install the correct package:

if cat /etc/os-release | grep -q '22.04'; then
    apt-get install -y intel-opencl-icd ocl-icd-libopencl1
else
    apt-get install -y beignet-opencl-icd ocl-icd-libopencl1
fi

This will avoid installation errors and make the opencl snippet work out-of-the-box on both older and current Ubuntu releases.

Thank you for maintaining this project!

Best regards,
Andoni

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions