Sometime ago following this thread I was able to get OpenCL working for my Ubuntu 18.04 (then on kernel 4.18).
Yesterday I upgrade my long forgotten PC and OpenCL is not working anymore. Clinfo returning:
clinfo -v
Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 2.1 AMD-APP (3052.0)
Platform Name: AMD Accelerated Parallel Processing
Platform Vendor: Advanced Micro Devices, Inc.
Platform Extensions: cl_khr_icd cl_amd_event_callback cl_amd_offline_devicesPlatform Name: AMD Accelerated Parallel Processing
ERROR: clGetDeviceIDs(-1)
I’m not that surprised… This is why I hate to upgrade my fully operational system but I wanted to get Darktable 3.0…
I’m on Ubuntu 18.04.3 LTS with kernel Linux dev 5.3.0-26-generic. Since rock-dkms does not compile under 5.3 I’m using kernel provided amdgpu driver.
ROCm packages installed now:
hsakmt-roct 1.0.9-298-gea01eb3
hsakmt-roct-dev 1.0.9-298-gea01eb3
hsa-ext-rocr-dev 1.1.9.0-rocm-rel-3.0-6-7128d0d
hsa-rocr-dev 1.1.9.0-rocm-rel-3.0-6-7128d0d
rocm-opencl 2.0.0-rocm-rel-3.0-6-9a4afec
rocm-opencl-dev 2.0.0-rocm-rel-3.0-6-9a4afec
additionaly
ocl-icd-libopencl1
ocl-icd-opencl-dev
from Ubuntu.
However AMDGPU-PRO 19.50 despite that the kernel module does not compile either brings opencl back again.
I saw on ROCm issue tracker request for supporting kernel 5.3.
Does anybody user somehow ROCm for OpenCL on kernel 5.3?