Installing from AMD ROCm on smOS and Ubuntu 16.04

Installing from AMD ROCm

Installing from a Debian repository

First make sure your system is up to date

sudo rm /etc/apt/sources.list.d/amdgpu-pro.list
sudo apt update
sudo apt -y dist-upgrade
sudo apt -y install libnuma-dev
sudo apt autoremove
sudo reboot

Add the ROCm apt repository

For Debian based systems, like Ubuntu, configure the Debian ROCm repository as follows:

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'

Install

Next, update the apt repository list and install the rocm package:

sudo apt update
sudo apt install rocm-dkms

Next set your permissions

You will need to add all your users to the ‘video” group by setting the Unix permissions

To add the miner and root users to the video group you will need the sudo password and can use the following command. replace the username with your username if it is something else:

sudo adduser miner video
sudo adduser root video

add ROCm binary path to environment

sudo sed -e 's|PATH="\(.*\)"|PATH="/opt/rocm/bin:\1"|g' -i /etc/environment

reboot your system.

sudo reboot

Upon Reboot run

rocm-smi
H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center