Contents
  1. 1. Ubuntu 18.04
  2. 2. Reference

How to install ROCm

Ubuntu 18.04

  • Add apt repo

    1
    2
    wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
    echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list
  • Install ROCm packages

    1
    2
    sudo apt update
    sudo apt install rocm-dkms
  • Grant the permission

    1
    sudo usermod -a -G video $LOGNAME
  • Verify the driver

    1
    2
    /opt/rocm/bin/rocminfo
    /opt/rocm/opencl/bin/x86_64/clinfo
  • More ROCm libs, if any

    1
    sudo apt install rocm-libs miopen-hip cxlactivitylogger
  • Remove the ROCm

    1
    2
    sudo apt autoremove rocm-dkms
    sudo apt autoremove rocm-libs miopen-hip cxlactivitylogger

Reference

Contents
  1. 1. Ubuntu 18.04
  2. 2. Reference