0 Replies Latest reply on May 15, 2018 1:55 PM by matszpk

    Radeon Software for Linux (AMDGPU-PRO) 18.10 on OpenSUSE Tumbleweed


      Two week ago, I successfully installed radeon software for linux 18.10 on the OpenSUSE tumbleweed. This operation requires building and installation Linux kernel 4.13 (I done it by using standard 'make rpm'). Before any installation, I modified amdgpu-pro scripts (in attachments). I installed only compute only packages (command "./amdgpu-pro-install --headless --opencl=pal,legacy"). The installation requires installed packages: 'dkms' and compiler packages (to build kernel).


      Unfortunatelly, the script installed only some needed packages and 'amdgpu-dkms', 'libdrm-amdgpu' and 'opencl-amdgpu-pro' have been installed manually by me.

      About kernel configuration: you can copy current config from /boot/config-XXXX or configure kernel manually. I recommend to remove many obsolete features and modules to make kernel affordable and building process to be much faster. Some configuration options is required:


      * CONFIG_KALLSYMS_ALL (General setup->Configure standard kernel features->Load all symbols for debugging/ksymoops + Include all symbols in kallsyms)

      * CONFIG_DRM (Device drivers->Graphics support->Direct Rendering Manager) (module or in kernel (recommended))

      Don't forget to install kernel-devel packages while installing new kernel. I used rpmrebuild (command rpmrebuild -pe package) to rename kernel packages to avoid package conflicts. After make rpm a needed kernel packages are in /usr/src/packages/RPMS/x86_64 directory.


      The amdgpu-dkms requires some changes (it is in /usr/src/amdgpu-18.10-577045/ directory) in Makefile (attached Makefile file). after applying changes just build and install amdgpu module:

      dkms build -m amdgpu -v 18.10-577045 -k YOUR_KERNEL_4.13_VERSION

      dkms install -m amdgpu -v 18.10-577045 -k YOUR_KERNEL_4.13_VERSION


      after these operations, amdgpu-pro opencl works fine.

      I found wrong permissions in repository files (they can blocks auto-updates or make some problems when you use zypper as normal user). You can fix by:


      chmod 644 /etc/zypp/repos.d/amdgpu-pro-local.repo /etc/zypp/repos.d/bumblebee.repo

      chmod 755 /var/opt/amdgpu-pro-local


      Optionally, you can disable these repositories (local amdgpu-pro and Bumblebee.repo) after driver installation.


      Likely, better way to install that driver by manually adding local repositories like described in https://en.opensuse.org/SDB:AMDGPU-PRO