[ Drivers ] Installing AMDGPU using ROCm

Alexander Hill
Alexander Hill
  • Updated

Objective:

To provide step-by-step instructions for installing AMDGPU using the Radeon Open Compute (ROCm) platform on Ubuntu.

 

Scope:
This document outlines the installation process for AMDGPU using ROCm on Ubuntu systems.

 

Prerequisites:

  • Ubuntu operating system installed
  • Internet connectivity
  • Terminal access with sudo privileges

 

Procedure:

  • Update Package Lists:
sudo apt update
  • Upgrade Installed Packages:
sudo apt-get dist-upgrade
  • Add ROCm Repository Key:
wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add -
  • Add ROCm Repository:

Visit ROCm Repository to check for the latest version.

echo 'deb [arch=amd64] https://repo.radeon.com/rocm/apt/6.0.2/ ubuntu main' | sudo tee /etc/apt/sources.list.d/rocm.list
  • Install ROCm Kernel Driver:
sudo apt install rocm-dkms
  • Verify Installation:

Check GPU Information:

/opt/rocm/bin/rocminfo 

Check OpenCL Information:

/opt/rocm/opencl/bin/clinfo

Set Visible Devices (Optional):

export ROCR_VISIBLE_DEVICES=0,1,2,3

View GPU Statistics:

rocm-smi

 

Note:

  • Ensure that your system meets the minimum requirements specified by AMD for ROCm installation.
  • Always verify the compatibility of ROCm with your GPU model and the Ubuntu version before proceeding with the installation.
  • It's recommended to visit the ROCm repository link mentioned in step 4 to confirm the latest version available for installation.

Conclusion:

This completes the installation process for AMDGPU using ROCm on Ubuntu. You can now utilize the enhanced compute capabilities provided by ROCm for your GPU-accelerated applications.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.