The below steps have been tested on sgminer-gm & sgminer-nicehash
- Web to http://developer.amd.com/tools-and-sdks/graphics-development/display-library-adl-sdk. Download the latest version. This was tested on ADL_SDK10.2
- Copy ALD_SDK zip file to /tmp
- mkdir /opt/ADL_SDK
- cd /opt/ADL_SDK
- unzip /tmp/ADL_SDK_V10.2.zip
- Web to http://support.amd.com/en-us/download and download the latest version for you card. This was last tested on 17.10 64bit
- Copy downloaded file to tmp
- cd /tmp
- tar xfvpJ amdgpu-pro-17.10-401251.tar.xz
- cd amdgpu-pro-17.10-401251
- ./amdgpu-pro-install --compute
- aptitude install libdrm-amdgpu-pro-dev libgbm1-amdgpu-pro-dev libglamor-amdgpu-pro-dev
- sudo apt-get install build-essential libcurl4-openssl-dev git automake libtool libjansson* libncurses5-dev
- git clone --recursive https://github.com/nicehash/sgminer.git
- mv sgminer sgminer-nicehash
- cd sgminer-nicehash/
- cp /opt/ADL_SDK/include/*.h ./ADL_SDK
- ./autogen.sh
- ./configure CFLAGS="-O3 -Wall -march=native -I/opt/amdgpu-pro/include -L/opt/amdgpu-pro/lib/x86_64-linux-gnu" --prefix=/opt/sgminer-nicehash
- make
- make install
- /opt/sgminer-nicehash/bin./sgminer -n
- sudo apt-get install build-essential libcurl4-openssl-dev git automake libtool libjansson* libncurses5-dev
- git clone --recursive https://github.com/genesismining/sgminer-gm
- cd sgminer-gm
- git submodule init
- git submodule update
- cp /opt/ADL_SDK/include/*.h ./ADL_SDK
- autoreconf -i
- CFLAGS="-O2 -Wall -march=native -std=gnu99 -I/opt/amdgpu-pro/include -L/opt/amdgpu-pro/lib/x86_64-linux-gnu" ./configure --prefix=/opt/sgminer-gm
- make
- make install
- /opt/sgminer-gm/bin/sgminer -n
- sudo apt-get update
- sudo apt-get upgrade
- wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
- sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'
- sudo apt-get remove rocm-smi
- sudo apt-get update
- sudo apt-get install rocm
- sudo vim /etc/default/grub and add the below line below
#2MB fragments for Ellesmere are enabled with a grub option:
GRUB_CMDLINE_LINUX="amdgpu.vm_fragment_size=9"
- sudo update-grub
- sudo reboot
- Remove Previous Installations (Important)
sudo apt-get purge nvidia*
sudo apt-get autoremove
- The latest NVIDIA driver for Linux OS can be fetched from NVIDIA's official website. The first one in the list, i.e. Latest Long Lived Branch version for Linux x86_64/AMD64/EM64T, is suitable for most case. If you want to down load the driver directly in a Linux shell, the script below would be useful.
cd ~
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/384.69/NVIDIA-Linux-x86_64-384.69.run
- Install Dependencies
sudo apt-get install build-essential gcc-multilib dkms
- Creat Blacklist for Nouveau Driver
Create a file at /etc/modprobe.d/blacklist-nouveau.conf with the following contents:
blacklist nouveau
options nouveau modeset=0
- Update Grub
sudo update-initramfs -u
- Reboot
sudo reboot
- Stop x server
For Ubuntu 14.04 / 16.04, excuting sudo service lightdm stop (or use gdm or kdm instead of lightdm)
For Ubuntu 16.04 / Fedora / CentOS, excuting sudo systemctl stop lightdm (or use gdm or kdm instead of lightdm)
- Excuting the Runfile
cd ~
chmod +x NVIDIA-Linux-x86_64-384.69.run
sudo ./NVIDIA-Linux-x86_64-384.69.run --dkms -s
- Check nvida driver is loaded
root@wlh-miner2:~# nvidia-smi
Mon Oct 2 20:38:17 2017
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.69 Driver Version: 384.69 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 950 Off | 00000000:04:00.0 Off | N/A |
| 0% 25C P0 22W / 75W | 0MiB / 1996MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+