Ah, I first thought you just wanted to get the Radeon plugin to work and CPU or GPU doesn’t matter.
With the LD_LIBRARY_PATH I set, I still only got the CPU (OpenCL) renderer of the Radeon Pro plugin working.
The problem with rendering on the GPU is that the LLVM versions of mesa (needed for OpenGL/the Blender UI) and ROCm (AMD’s OpenCL implementation for GPU rendering) bite themselves. I found an old issue for that: Blender segfaults on OpenCL render · Issue #97401 · NixOS/nixpkgs · GitHub
I couldn’t get the workaround from that ticket (compiling mesa with llvmPackages_rocm) to work because mesa complains about a missing libllvm in llvmPackages_rocm.
There seems to be an easier workaround mentioned on the llvm mailing list: https://lists.llvm.org/pipermail/llvm-dev/2017-June/114572.html
Unfortunately, I don’t have time to try this out, but if someone wants to try, I’m happy to help.
Maybe headless rendering in Blender works (as it shouldn’t need OpenGL)?
On a sidenote, Blender 3 will not have an OpenCL renderer but will use cuda on nvidia or hip on amd instead. But as hip builds upon rocm, it ends up with the same problem.