How to get OpenCL to work on an AMD GPU with Ubuntu 16.04?

34,359

When clinfo shows "Number of platforms 0", you probably did not installed an ICD which is needed to use OpenCL-Products (like an Graphics card from AMD).

Use "sudo apt install mesa-opencl-icd" for a possible solution.

Share:
34,359

Related videos on Youtube

Andreas Hartmann
Author by

Andreas Hartmann

I am a nerd, or so they say. SOreadytohelp

Updated on September 18, 2022

Comments

  • Andreas Hartmann
    Andreas Hartmann over 1 year

    I have a PC with a:

    VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Venus XT [Radeon HD 8870M / R9 M270X/M370X] [1002:6821] (rev ff) (prog-if ff)
    

    How can I get OpenCL to work on it? I'm not offered a proprietary driver in the Software sources tool, and AFAIK it isn't supported on 16.04 anymore.

    clinfo currently lists zero devices.

    • Terrance
      Terrance about 7 years
      Look here askubuntu.com/a/815592/231142. I have tried the oibaf's PPA solution and it worked for me for getting AMD support working on my laptop.
    • Booo
      Booo almost 7 years
      This Blog provides a solution that worked on my PC (AMD FirePro M4000 + Ubuntu 16.04).
  • Andreas Hartmann
    Andreas Hartmann over 6 years
    I had solved it in the meantime, but that was indeed the solution.
  • Tomasz Waszczyk
    Tomasz Waszczyk about 6 years
    It is easier to run AMD GPU on Ubuntu 18.04
  • schneiderfelipe
    schneiderfelipe almost 4 years
    This solved an issue I had as I could not make Davinci Resolve to work (RX 580 with AMDGPU-PRO 20.10). Thanks!
  • Admin
    Admin almost 2 years
    Thank you!!! Just spent more than half a day trying to fix Number of platforms 0 and it solved it.