[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: AMD OpenCL support



On 17/10/2021 09:00, didier gaumet wrote:

Hello,

Disclaimer: I have no AMD graphic card and have not personally tested
what is describe below

Thanks for your reply and thoughts.

Right now with an AMD/ATI graphic card in Debian, the only OpenCL run-
time loader (ICD) present in the offical repos is the mesa one (mesa-
opencl-icd) that you have already installed.

If it not already installed, install the clinfo package and run clinfo
to have more informations about the status of your OpenCL setup.

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.1


Perhaps 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 one

https://www.amd.com/en/support/kb/faq/amdgpu-installation

This 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.

- or continue using the free amdgpu driver but install ROCm (AMD ICD)
https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html

I spend some time testing this, best I got is ROCm 3.3 with only one
error (is breaks package "python" which doesn't even exist in debian).
Newer ROCm versions have many package breaks, therefore cannot be installed.

- or continue using the free amdgpu driver but install the ICD subset
of the proprietary driver
https://linuxconfig.org/install-opencl-for-the-amdgpu-open-source-drivers-on-debian-and-ubuntu

I will try this solution next.


--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀


Reply to: