Skip to content

Ubuntu 16.04 Setup

Omar Alvarez edited this page Oct 14, 2016 · 1 revision

Install AMD Drivers

Based on AMD official guide http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Install.aspx

Using the following command at a terminal will provide you with the version of the AMDGPU-Pro stack on your system, or inform you that there are no packages found:​​​

$ dpkg -l amdgpu-pro

Download the proper driver http://support.amd.com/en-us/download

If you have headless system with only ssh access download wherever you like and copy with scp command:

$ scp downloadedDriver  user@yourInstallationHost:/tmp/downloadedDriver

Then extract and install:

$ cd /tmp
$ tar -Jxvf amdgpu-pro_16.30.3-315407.tar.xz
$ amdgpu-pro-driver/amdgpu-pro-install

Ensure that your user account is a member of the "video" group. You can find which groups you are a member of with the following command:

$ groups
$ sudo usermod -a -G video $LOGNAME 

If you have physical access you will need to log out and in again to activate this change otherwise if in ssh reboot.

Check if OpenCl detects your GPUs:

$ clinfo

Headless Systems

If you have a headless system, try to install and configure xorg-video-dummy to make system believe a monitor is installed:

$ sudo apt-get install xserver-xorg-video-dummy
$ sudo gedit /etc/X11/xorg.conf  (or your preferred editor ex. nano)

Then write:

Section "Device"
Identifier "Configured Video Device"
Driver "dummy"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
HorizSync 31.5-48.5
VertRefresh 50-70
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1152x864"
EndSubSection
EndSection

Save it and reboot:

$ sudo reboot
Clone this wiki locally