Skip to content

Instantly share code, notes, and snippets.

@M3DZIK
Last active March 28, 2023 18:10
Show Gist options
  • Save M3DZIK/0fe2932e6e3a4cc46fdd0408d508057d to your computer and use it in GitHub Desktop.
Save M3DZIK/0fe2932e6e3a4cc46fdd0408d508057d to your computer and use it in GitHub Desktop.
Install HIP and OpenCL on Fedora 37 and latest with amdgpu (open source) drivers

Install HIP and OpenCL on Fedora 37 and latest with amdgpu (open source) drivers

Download and install amdgpu-install

(download latest version from https://www.amd.com/en/support)

$ wget https://repo.radeon.com/amdgpu-install/22.40.3/rhel/9.1/amdgpu-install-5.4.50403-1.el9.noarch.rpm
$ sudo dnf install ./amdgpu-install-*.noarch.rpm

Edit baseurl

Change $amdgpudistro to 9.1

$ sed -i -e "s#\$amdgpudistro#9.1#g" /etc/yum.repos.d/amdgpu*.repo

Install HIP and OpenCL

Install HIP and OpenCL without proprietary dkms modules

$ amdgpu-install --no-dkms --usecase=hip,opencl

Source: https://kimtinh.gitlab.io/post/tech/2022_06_14_amd_hip_opencl/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment