Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.
Some article numbers may have changed. If this isn't what you're looking for, try searching all articles. Search articles

Installing and Configuring AMDGPU-PRO in Ubuntu 16.04 Linux

Summary: This article describes the installation and configuration of the AMD-GPU driver for use in Ubuntu Linux to enable HDMI audio.

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Symptoms

Ubuntu AMDGPU-PRO

The open source AMDGPU driver does not support (currently) HDMI audio. Installing the following "hybrid" AMDGPU-Pro driver from AMD will resolve this issue.

AMD-PRO only works in 16.04 LTS or newer and only with these cards:

  • Radeon™ RX Vega Series Graphics AMD Radeon™ Pro WX-series
  • Radeon™ Vega Frontier Edition AMD FirePro™ W9100
  • Radeon™ RX 550/560/570/580 Series Graphics AMD FirePro™ W8100
  • AMD Radeon™ RX 460/470/480 Graphics AMD FirePro™ W7100
  • AMD Radeon™ Pro Duo AMD FirePro™ W5100
  • AMD Radeon™ R9 Fury/Fury X/Nano Graphics AMD FirePro™ W4300
  • AMD Radeon™ R9 380/380X/390/390X Graphics AMD FirePro™ W4100
  • AMD Radeon™ R9 285/290/290X Graphics AMD FirePro™ W2100
  • AMD Radeon™ R7 240/250/250X/260/260X/350 AMD FirePro™ W600
  • AMD Radeon™ HD7700/7800/8500/8600 AMD FirePro™ S-Series
  • AMD Radeon™ R9 360 Graphics AMD Radeon™ Pro WX 9100
  • AMD Radeon™ R5 340

To determine what video card is installed in the system, run the following in terminal:
  • $ lspci -k | grep -EA2 'VGA|3D'

To determine if the driver is already installed, run the following in terminal:

  • $ dpkg -l amdgpu-pro

Cause

HDMI audio functionality requires driver installation.

Resolution

Installing the AMDGPU-PRO Driver

  1. Run the following in terminal:
    • sudo apt-get update
    • sudo apt-get upgrade
    • sudo apt-get dist-upgrade
    • vsudo reboot
  2. Download the newest driver from here - https://support.amd.com/en-us/download/workstation?os=Linux+x86_64#
    Note - You will want to obtain the driver " Radeon™ Pro Software Enterprise Edition for Ubuntu 16.04.3 "
  3.  Once the file is downloaded, run the following in terminal:
    1. cd ~Downloads/
    2. tar -jxvf amdgpu-pro*
    3. cd amdgpu-pro*
    4. ./amdgpu-pro-install --compute
      NOTE: the 'compute' command has two dashes with no spaces 
    5. sudo reboot

 


Configure The AMD-PRO Driver For Use

  1. Ensure that the user account is a member of the "video" group prior to using the vulkan driver. You can find which groups you are a member of with the following command:
    • groups
  2. If your account is not a part of the video group, you will need the sudo password to elevate the following commands:
    • sudo usermod -a -G video $LOGNAME
    • sudo gedit /etc/default/grub
  3. Locate and replace GRUB_CMDLINE_LINUX_DEFAULT="quiet splash' with GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amdgpu.vm_fragment_size=9" 
  4. Save and close the txt editor 
  5. Run the following in terminal to update grub:
    • # sudo update-grub
  6. Reboot

 


Verify Functionality

Run the following in terminal:
  • lspci -k | grep -EA3 'VGA|3D|Display'    (This command will indicate the installed video card and the kerneled driver in use. If working properly it should state "amdgpu" )
  • sudo apt-get install mesa-utils             (Installs a package used for the next steps)
  • glxinfo | grep OpenGL                             (This is an additional check to verify the AMD card is enabled and working)
  • glxinfo | grep "direct rendering"            (If it says yes, then your AMD card is enabled and not using the processor for graphics )
 

Uninstalling the AMD GPU-PRO Driver

If for any reason you wish to remove the AMDGPU-PRO graphics stack, you can do this using the uninstall script which was included with the original installation and is present in your path. From the command prompt, enter the following command:
  • amdgpu-pro-uninstall

 


Installing the Optional ROCm Component

 This AMDGPU-Pro driver package incorporates the ROCm component that can be optionally installed for running Compute/OpenCL applications. You can install the component by issuing the following command:

  • sudo apt install -y rocm-amdgpu-pro

 

Configuring the Optional ROCm Component

The LLVM_BIN environment variable needs to be set prior to running ROCm applications.

  • To set it temporarily when running an individual ROCm command, such as clinfo, use:
    • env LLVM_BIN=/opt/amdgpu-pro/bin /opt/amdgpu-pro/bin/clinfo
  • To set it permanently for all bash and other sh-like shell users, you can use the following command:
    • echo 'export LLVM_BIN=/opt/amdgpu-pro/bin' | sudo tee /etc/profile.d/amdgpu-pro.sh
  • To set it permanently for all csh users, you can use the following command:
    • echo 'setenv LLVM_BIN /opt/amdgpu-pro/bin' | sudo tee /etc/profile.d/amdgpu-pro.csh

 

See the Ubuntu Environment Variables Community Help for more information.

Article Properties


Last Published Date

10 Nov 2021

Version

4

Article Type

Solution