Skip to content

ryan-ronnander/amdgpu-pro-opencl-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

amdgpu-pro-opencl-installer

AMD OpenCL installer scripts for Linux. These scripts install AMD's "legacy" (non-ROCm) OpenCL components alongside the open source amdgpu stack. These scripts are adapted for OpenSUSE and Fedora from the 'opencl-amd' Arch Linux package.

Assumptions

This is not for Vega based hardware. Please see ROCm for Vega 56, Vega 64, and Vega Frontier Edition GPUs.

A recent AMD GPU derived from their GCN architecture is required.

amdgpu_opencl_install.sh has been tested against the following 64 bit rpm based distributions:

  • OpenSUSE Tumbleweed
  • Fedora 27

Prerequisites

The clinfo package is required to verify successful installation and run other OpenCL programs and utilities such as xmr-stak. You may need more packages depending on your base installation (minimal install, etc).

OpenSUSE

sudo zypper in -y clinfo

Fedora

sudo dnf install -y clinfo

Pre-Polars (RX 460, RX 470, RX 480) GPUs

The 'amdgpu' kernel module is required to run the OpenCL components! If you're using the 'radeon' kernel module (default for 7900 series, 200 series, 300 series GPUs), you will need to blacklist the radeon module and add the following kernel parameters to your grub defaults in /etc/defaults/grub:

modprobe.blacklist=radeon radeon.si_support=0 radeon.cik_support=0 amdgpu.exp_hw_support=1 amdgpu.si_support=1 amdgpu.cik_support=1

For example, if you're using an HD 7870, R9 290X, or R9 390 you will need the above kernel parameters. Please see Fedora's documentation on adding kernel parameters to grub.

Please note that you do not actually need all of the above parameters depending on your actual hardware setup.

Kernel version 4.15 or greater recommended.

Post Installation

Setting the OCL_ICD_VENDORS environment variable allows running clinfo and other utilities under a non-root context.

export OCL_ICD_VENDORS=/etc/OpenCL/vendors/

Setting the OCL_ICD_VENDORS environment variable to AMD specific devices will prevent Intel iGPU OpenCL devices from enumerating. This is usually desired, but it depends on your intentions.

export OCL_ICD_VENDORS=/etc/OpenCL/vendors/amdocl64.icd

About

AMD OpenCL installer scripts for Linux. Run the open amdgpu stack with added proprietary OpenCL components.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages