After upgrade from media-libs/mesa-18.1.9 to media-libs/mesa-18.2.4 my monero mining software stoped to work so I starded to inspect what was the case. I found out that "eselect opencl list" dont report mesa profile. It shoult look like this:
eselect opencl list
Available OpenCL implementations:
 ocl-icd *
but it was only ocl-icd. So I uninstalled dev-libs/amdgpu-pro-opencl-17.50.552542 to check what will happen but there was still "ocl-icd" profile in "eselect opencl list". I tryed clinfo and it was reporting mesa opencl implementation. So i downgrade mesa back to 18.1.9, installed amdgpu-pro-opencl and all is working fine again:
- xmr-stak (mining software) works
- eselect opencl list show both mesa and ocl-icd
- clinfo shows OpenCL 2.1 AMD-APP (2527.4)
It looks like there is some problem in mesa 18.2 that is stopping amdgpu-pro-opencl to work.
*** This bug has been marked as a duplicate of bug 670266 ***
Problem is that with mesa-18.2.4 I can't use OpenCL 2.1 AMD-APP. So maybe bug title is wrong but it is not a duplicate. How can I change to AMD-APP when there is only one ocl-icd and it defaults to MESA? Before when ocl-icd was selected it was using AMD-APP from amdgpu-pro-opencl. How can I do this now when there is onlu one ocl-icd (no ocl-icd form mesa and other ocl-icd from amdgpu-pro)?