-
amdgpu installer can be get from https://www.amd.com/en/support. Just select your right card.
-
Download Radeon™ Software for Linux® installer version … for RHEL/CentOS 9.0.
You will get a rpm file:amdgpu-install-....el9.noarch.rpm
.
-
Install amdgpu installer.
$ sudo dnf install amdgpu-install-....el9.noarch.rpm $ rpm -lq amdgpu-install /etc/amdgpu-install /etc/amdgpu-install/rocm.gpg.key /etc/yum.repos.d/amdgpu.repo /etc/yum.repos.d/rocm.repo /usr/bin/amdgpu-install /usr/share/amdgpu-install /usr/share/amdgpu-install/AMDGPUPROEULA
This package provide a script for install amdgpu:
amdgpu-install
, and 2 repos:amdgpu.repo
androcm.repo
. -
Edit
baseurl
in/etc/yum.repos.d/amdgpu*.repo
, change$amdgpudistro
to9.3
:$ sed -i -e "s#\$amdgpudistro#9.0#g" /etc/yum.repos.d/amdgpu*.repo
-
Change rocm repo version to
5.3
if it is5.2
, because version5.2
doesn’t exist anymore:$ sudo sed -i -e "s#5\.2#5.3#g" /etc/yum.repos.d/rocm.repo
-
Enable rocm repo
$ sudo dnf config-manager --enable rocm
-
Install hip and opencl
$ amdgpu-install --no-dkms --usecase=hip,opencl
-
Done. Now you can open Blender (>= 3.2) to check if HiP is available in Cycle.
References
https://www.amd.com/en/support/kb/faq/amdgpu-installation