Giter Site home page Giter Site logo

rpm-amdgpu-pro-opencl's Introduction

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.

rpm-amdgpu-pro-opencl's People

Contributors

lucacuzzocrea avatar secureworkstation avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.