Kubuntu 17.10, kernel 4.10.0-35-generic, AMDGPU-PRO 17.50-511655.
--compute has been deprecated. Instead, run:
amdgpu-pro-install --opencl=legacy,rocm --headless
Tested with Kubuntu 17.04, kernel 4.10, AMDGPU-PRO 17.10-414273, XFX Radeon RX-480 (Polaris/Ellesmere).
AMDGPU is a open source driver for AMD graphics. It is available in stock kernels starting with Linux 4.2, but does not provide OpenCL. OpenCL support for the newer AMD chips can be added by installing several libraries from the binary AMDGPU-PRO driver distribution, provided by AMD (AMDGPU-PRO itself only works with RHEL/CentOS 7.3/6.8, Ubuntu 16.04, SLED/SLES 12).
Check `lsmod` and
/var/log/Xorg.log that you have AMDGPU loaded and working.
Download AMDGPU-PRO package for your Linux distribution from support.amd.com. Check that your graphics card is supported under AMD Radeon Product Compatibility on the downloads page.
`tar -xvf ...` to upack the downloaded file and run:
amdgpu-pro-install --compute (see Update above)which is for “compute only”, i.e. it will install only the following:
clinfo-amdgpu-pro opencl-amdgpu-pro-icd amdgpu-pro-dkms libdrm2-amdgpu-pro libdrm-amdgpu-pro-amdgpu1
clinfo to check OpenCL support.
May 2017. Šarūnas Burdulis.