AMD's ROCm (Radeon Open Compute) platform lets you run GPU-accelerated workloads like PyTorch, TensorFlow, and LLM inference on AMD GPUs. If you have a supported Radeon card — RDNA2 (RX 6000 series / gfx1030) or RDNA3 (RX 7000 series / gfx1100) — this guide walks you through installing ROCm 7.14 on Ubuntu 26.04 LTS.

I tested this on a Radeon RX 6800M (gfx1031, RDNA2), and everything below is what actually worked. The same steps apply to most RDN-based cards.

Prerequisites

Step 1 — Install the amdgpu-install script

ROCm uses the amdgpu-install script to handle the GPU driver, ROCm runtime, and graphics components together. Download and install it from AMD's repository:

sudo apt update
wget https://repo.radeon.com/amdgpu-install/31.40.1/ubuntu/resolute/amdgpu-install_31.40.1.314001-1_all.deb
sudo apt install ./amdgpu-install_31.40.1.314001-1_all.deb

Replace resolute with noble (24.04) or jammy (22.04) if you're on a different Ubuntu version.

Step 2 — Install ROCm and the GPU driver

Now run amdgpu-install with the appropriate use case and GPU target.

sudo amdgpu-install --usecase=rocm,graphics --gfxversion=gfx1031

Important: Use your GPU's specific gfx target instead of auto. The auto-detection can sometimes miss the right architecture, so specifying it explicitly gives a cleaner install. Find your GPU's gfx version:

Not sure? Run rocminfo after installing (or look up your card's architecture on AMD's site).

Device family note: When the installer prompts you to select a device family, you have two options:
  • All — installs runtime support for every AMD GPU architecture. Good if you're developing cross-platform or testing on multiple cards.
  • AMD Radeon — targets only consumer Radeon GPUs. This is the leaner, more focused choice for a single Radeon card.
If you're just using your own machine, pick AMD Radeon. If you're building something that may run on Instinct or other architectures later, pick All.

Step 3 — Install additional libraries

Some ROCm tools need the libatomic and libquadmath libraries to run correctly. Install them now so you don't hit a cryptic error later:

sudo apt install libatomic1 libquadmath0

Step 4 — Add your user to the render and video groups

GPU access is controlled through Linux groups. Your user needs to be in the render and video groups to use the AMD GPU without sudo:

sudo usermod -a -G render,video $LOGNAME

Log out and back in (or restart) for the group change to take effect.

Step 5 — Reboot

A reboot ensures the kernel module (amdgpu) and ROCk driver are loaded:

sudo reboot

Step 6 — Verify the installation

After rebooting, run rocminfo to confirm your GPU is detected:

rocminfo

You should see your GPU listed with its name, gfx architecture, and compute units. A healthy output looks like this:

*******
Agent 2
*******
  Name:                    gfx1031
  Marketing Name:          AMD Radeon RX 6800M
  Compute Unit:            40
  Device Type:             GPU
  ...

You can also check that the kernel driver is loaded:

ls /dev/kfd   # should exist
ls /dev/dri/  # should show renderD* nodes

What's next?

With ROCm installed, you can now:

If the installer didn't detect your GPU, double-check the --gfxversion flag and try the All device family option. If you run into issues, AMD's official ROCm install guide has the full details.