Skip to content

Instantly share code, notes, and snippets.

@sxiii
Created July 31, 2021 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sxiii/a582997f49458bfc45989350f3b35601 to your computer and use it in GitHub Desktop.
Save sxiii/a582997f49458bfc45989350f3b35601 to your computer and use it in GitHub Desktop.
Fedora 34 AMDGPU OpenCL Pro Driver (Based On Ubuntu Driver)

If you need to get working OpenCL on AMD Navi on Fedora, follow this steps:

sudo dnf -y groupinstall 'RPM Development Tools'
rpmdev-setuptree
cd ~/rpmbuild/SOURCES
wget --referer https://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Driver-for-Linux-Release-Notes.aspx https://drivers.amd.com/drivers/linux/amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz
cd ~/rpmbuild/SPECS
git clone https://github.com/secureworkstation/rpm-amdgpu-pro-opencl amdgpu-pro-opencl
cd amdgpu-pro-opencl
rpmbuild -ba amdgpu-pro-opencl.spec
sudo dnf -y --nogpgcheck install ~/rpmbuild/RPMS/x86_64/amdgpu-pro-opencl-20.45.1188099-1.fc*.x86_64.rpm

Run program you like with pre-fixing it with amdgprorun or full path to program:

amdgporun clinfo
amdgporun clpeak
amdgporun blender
amdgporun darktable-cltest
amdgporun darktable
/usr/bin/amdgporun /home/user/nanominer-3.3.7/nanominer

Etc... It should work!

If you have questions, please check this repo: https://github.com/secureworkstation/rpm-amdgpu-pro-opencl

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