For my AMD Radeon RX 5700XT I tried amdgpu-pro drivers (v19.50) installation on modern (kernel 5.3) Ubuntu 18.04.3 as driver claims it's supported but compilation failed with C++ errors. Tried the same on 5.0
and 5.5.2
kernels with same results (on 5.5.2
kernel it was different error though: <drm/drmP.h>: No such file or directory
).
Currently I'm on kernel 5.5.2
with mesa 19.3
installed. clinfo
prints a lot of satisfying information seeming it's all cool, but with such tiny little line in-between:
fatal error: cannot open file '/usr/lib/clc/gfx1010-amdgcn-mesa-mesa3d.bc': No such file or directory
which causes kernels compilation to fail (with the same error).
Anyone having any luck getting navi10 GPU OpenCL working on Ubuntu any distro?
So, I couldn't manage amdgpu/amdgpu-pro driver to install on Ubuntu 18.04 with all permutations of:
But I did manage to get OpenCL working ;) What eventually succeeded for me:
install mesa 19.3:
install OpenCL:
P.S. Exploring and learning about amdgpu-pro sources while trying to fix compilation errors I discovered that AMD devs implement forthcoming GPUs directly within mesa open-source drivers and Linux kernel - months before GPUs even released. So, to jusfify AMD devs a bit, that's where the development focus is - not on amdgpu-pro.
Glad you got it working, I saw your inquiry on a few other forums while trying to find a solution. I managed to get a somewhat working solution.
I also have the RX 5700XT, and I'm running
Pop!_OS 19.10
on5.5.5-050505-generic
. For my PPA's, I have cappelikan, kisak, and oibaf; I suspect this is reproducible without them as I mainly have [a few of] them for general drivers (other than OpenCL).I downloaded the amdgpu-pro drivers 19.50, and installed the following (in order):
To test if OpenCL works, I ran
darktable-cltest
and looked for successful outputs when loading the opencl kernel.There is a big 'but' in all this: I cannot boot successfully (black screen, flashing lines). I'd have to CTRL+ALT+F2 and run
./amdgpu-pro-install --uninstall
from the amdgpu-pro drivers directory, and then repeat the same steps above. I've tested this with the 5.3 and 5.5 kernel so far.