How to install AMD ROCm for OpenCL support

To install ROCm with OpenCL and Image Support, you have do the following five steps:

  1. Add the ROCm 2.10.0 repository to your package manager (3.0 doesn’t work). You can find the repositories for Debian/Ubuntu, Fedora/RHEL or openSUSE/SLE here.

    For example to add a zypper repository on openSUSE create the following file:


    with the content:

    name=Radeon Open Compute
  2. Install the required packages using:

    zypper in rocm-opencl hsa-ext-rocr-dev
  3. Create /etc/ with the following content:

  4. To load the new paths into the linker run: ldconfig

  5. And last but not least create an OpenCL ICD file using:

    echo > /etc/OpenCL/vendors/amdocl64.icd
  6. Now you can run clinfo to verify that it is working. Check for Image Support, this is what you need for darktable or RawTherapee.