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:
deb
repositories;
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:
amdgpu-dkms
package will attempt to compile amdgpu
kernel module from AMD source.
This may only work with specific Linux kernel versions.