Install AMDGPU HiP, OpenCL on Fedora 36

  1. amdgpu installer can be get from Just select your right card.

  2. Download Radeon™ Software for Linux® installer version … for RHEL/CentOS 9.0.
    You will get a rpm file: amdgpu-install-....el9.noarch.rpm.

  1. Install amdgpu installer.

    $ sudo dnf install amdgpu-install-....el9.noarch.rpm
    $ rpm -lq amdgpu-install

    This package provide a script for install amdgpu: amdgpu-install, and 2 repos: amdgpu.repo and rocm.repo.

  2. Edit baseurl in /etc/yum.repos.d/amdgpu*.repo, change $amdgpudistro to 9.0:

    $ sed -i -e "s#\$amdgpudistro#9.0#g" /etc/yum.repos.d/amdgpu*.repo
  3. Change rocm repo version to 5.3 if it is 5.2, because version 5.2 doesn’t exist anymore:

    $ sudo sed -i -e "s#5\.2#5.3#g" /etc/yum.repos.d/rocm.repo
  4. Enable rocm repo

    $ sudo dnf config-manager --enable rocm
  5. Install hip and opencl

    $ amdgpu-install --no-dkms --usecase=hip,opencl
  6. Done. Now you can open Blender (>= 3.2) to check if HiP is available in Cycle.


See also

comments powered by Disqus