Skip to content

OpenCL Installation for AMD Radeon GPUs

Download the Latest Drivers

First you need to download the latest amdgpu-install wrapper here: https://www.amd.com/en/support/linux-drivers.

On the Mercury EM780 running Ubuntu 24.04 LTS, we downloaded: Radeon™ Software for Linux® version 24.10.3 for Ubuntu 20.04.6 HWE.

Install

Install the AMD wrapper:

sudo apt install ./amdgpu-install_6.1.60103-1_all.deb 

Install the OpenCL ROCr driver:

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

Add the current user to the render group:

sudo usermod -a -G render $LOGNAME

Then reboot:

sudo reboot

Check if it works:

clinfo

Sources