piorunz writes:
On 17/10/2021 09:00, didier gaumet wrote:
[...]
Yes I have that mesa version of OpenCL installed. Unfortunately, this version is too old and not recognized. I need OpenCL 1.2 at least I think. clinfo says, among many other things: Device Version OpenCL 1.1 Mesa 20.3.5 Driver Version 20.3.5 Device OpenCL C Version OpenCL C 1.1Perhaps your claim of not having OpenCL support is erroneous and what happens actually is you have uncomplete/unsufficent support for your use case: a typical example is Darktable not having OpenCL image support, this requiring more recent OpenCL implementation that the Mesa one. Then you would probably have to either: - revert to use the proprietary amdgpu-pro driver (including an AMD ICD) instead of the free amdgpu onehttps://www.amd.com/en/support/kb/faq/amdgpu-installationThis procedure requires downloading .deb drivers from https://support.amd.com/en-us/download. Only distros supported are Ubuntu 18.04.5 HWE, Ubuntu 20.04.3. They will most likely fail in Debian.
[...] Hello, I happened to have some issues wrt. a bug similar to this: https://bugs.freedesktop.org/show_bug.cgi?id=111481There, the suggested fix is to switch to amdgpu-pro (which seems to remedy the issue but not entirely...) which lead me to try the `.deb` files from AMD. I downloaded `amdgpu-pro-21.20-1292797-ubuntu-20.04.tar.xz` and it seems to have installed just fine.
As a result, I should be running the proprietary driver now and thus have OpenCL running -- I only ever tested it with a demo application, though...
Excerpt from clinfo: ~~~ Platform Name: AMD Accelerated Parallel Processing Number of devices: 1 Device Type: CL_DEVICE_TYPE_GPU Device OpenCL C version: OpenCL C 2.0 Driver version: 3261.0 (HSA1.1,LC) Profile: FULL_PROFILE Version: OpenCL 2.0 ~~~ btw. I do not seem to have a `Device Version` string in there? ~~~ # dpkg -l | grep opencl | cut -c -90ii amdgpu-pro-rocr-opencl 21.20-1292797 ii ocl-icd-libopencl1:amd64 2.2.14-2 ii ocl-icd-libopencl1:i386 2.2.14-2 ii ocl-icd-libopencl1-amdgpu-pro:amd64 21.20-1292797 ii ocl-icd-libopencl1-amdgpu-pro-dev:amd64 21.20-1292797 ii ocl-icd-opencl-dev:amd64 2.2.14-2 ii opencl-base 1.2-4.4.0.117 ii opencl-c-headers 3.0~2020.12.18-1 ii opencl-clhpp-headers 3.0~2.0.13-1 ii opencl-headers 3.0~2020.12.18-1 ii opencl-intel-cpu 1.2-4.4.0.117 ii opencl-orca-amdgpu-pro-icd:amd64 21.20-1292797 ii opencl-rocr-amdgpu-pro:amd64 21.20-1292797 ii opencl-rocr-amdgpu-pro-dev:amd64 21.20-1292797
~~~ To summarize: It might be worth trying the Ubuntu-.debs out on Debian. Although its not a "clean" solution by any means, it might "just work"? HTH Linux-Fan ΓΆΓΆ
pgpyhukeY7BBf.pgp
Description: PGP signature