Install AMDGPU HiP, OpenCL on Fedora 36

  1. amdgpu installer can be get from https://www.amd.com/en/support. 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
    /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 and rocm.repo.

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

    $ 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.

References

https://www.amd.com/en/support/kb/faq/amdgpu-installation

See also

comments powered by Disqus