21

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.

Andreas Hartmann
  • 2,563
  • 7
  • 29
  • 46
  • 1
    Look here http://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. – Terrance Feb 17 '17 at 19:09
  • 1
    [This Blog](https://laanwj.github.io/2016/05/06/opencl-ubuntu1604.html) provides a solution that worked on my PC (AMD FirePro M4000 + Ubuntu 16.04). – Booo Jul 22 '17 at 20:29

1 Answers1

26

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.

TTorai
  • 276
  • 4
  • 3
  • 1
    I had solved it in the meantime, but that was indeed the solution. – Andreas Hartmann Dec 18 '17 at 18:54
  • It is easier to run AMD GPU on Ubuntu 18.04 – Tomasz Waszczyk Apr 22 '18 at 17:51
  • 1
    This solved an issue I had as I could not make [Davinci Resolve](https://www.blackmagicdesign.com/br/products/davinciresolve/) to work ([RX 580](https://www.amd.com/en/support/graphics/radeon-500-series/radeon-rx-500-series/radeon-rx-580) with AMDGPU-PRO 20.10). Thanks! – schneiderfelipe Jul 09 '20 at 14:45
  • Thank you!!! Just spent more than half a day trying to fix `Number of platforms 0` and it solved it. – K.Mat Jun 27 '22 at 17:58