OpenCL with the open-source amdgpu kernel module

Tested with Ubuntu 22.10 and Debian Sid (2024.04.17); Radeon RX 5700, RX 6500 XT, RX 7600; ROCm 6.1.

Visit https://docs.amd.com > Deploy ROCm > Linux Overview. Download and install amdgpu-install.x.y.z.deb. This will:

  1. configure additional deb repositories;
  2. install amdgpu-install script.

Then ROCm OpenCL support can be installed by:

    apt install rocm-opencl-runtime
(This will pull some additional packages.)

The same can be achieved by running:

    amdgpu-install --no-dkms --usecase=opencl

N.B. User must be a member of render group in order to be able to use ROCm/OpenCL.

Notes:


/~sarunas