Skip to content

secureworkstation/rpm-amdgpu-pro-opencl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

AMDGPU-PRO OpenCL driver for Fedora

We repackage the proprietary Ubuntu 20.04 driver for a clean installation on a Fedora system. It is meant to coexist with the free AMDGPU driver on a regular Fedora kernel (no proprietary kernel modules required). Kernel 5.6.7-300.fc32.x86_64 or newer is recommended.

This package includes both the PAL and the ORCA (Legacy) driver, hopefully supporting all AMD GPU hardware that is supported by the driver (up to Navi14 / AMD Radeon 5600 XT), though it is only regularly tested by the package maintainer on Navi10 / AMD Radeon 5700 XT.

This package is inspired and partially based on the AUR package by Christopher Snowhill, ipha, johnnybash and grmat. https://aur.archlinux.org/packages/opencl-amd/

Installation

Since we are not allowed to distribute the binary releases, you will need to build the RPM package yourself.

$ 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

Usage

By default this driver is disabled, because it's needed only by the software that uses OpenCL and in theory you may want to use other OpenCL drivers like ROCm or Clover. You will need to explicitly run the amdgporun wrapper script. Eg.

$ amdgporun clinfo
$ amdgporun clpeak
$ amdgporun blender
$ amdgporun darktable-cltest
$ amdgporun darktable

If you want to enable it by default, you will need to execute two additional commands:

$ echo /usr/lib64/amdgpu-pro-opencl | sudo tee /etc/ld.so.conf.d/amdgpu-pro-opencl-x86_64.conf
$ sudo ldconfig

Once this is done, you can execute your OpenCL-needing applications normally.

About

Proprietary AMDGPU-PRO OpenCL ICD clean RPM repackage for Fedora (and compatible systems)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published