NAME

Rex::GPU::AMD::Setup::Ubuntu - AMD driver setup for Ubuntu 22.04, 24.04 and 26.04 (experimental)

VERSION

version 0.006

DESCRIPTION

Experimental. The AMD driver on Ubuntu:

  • amdgpu-dkms on 22.04, 24.04 and 26.04 with a -generic kernel of AMD's matrix, per "release_data": from repo.radeon.com/amdgpu/31.60/ubuntu (suite resolute, noble, jammy) with linux-headers-$(uname -r), and on 24.04 and 22.04 linux-modules-extra-$(uname -r) where apt has it -- the 7.0 kernels have none (amdgpu.ko is in linux-modules). Never the linux-headers-generic metapackage, which pulls a new kernel. Without an apt candidate for the headers or amdgpu-dkms it dies after apt-get update, before any package is installed, with the repository and its key in place. Installed headers count; the running kernel's headers that are not installed are gone from the archive once it has moved on to a newer kernel (a kernel update the host was not rebooted into) -- then the message says to upgrade the kernel and reboot first.

  • inbox: the kernel's own amdgpu. For any GPU but the Ryzen APUs and the Radeon GPUs (below) this checks neither the release nor the kernel series; "release_data" only names the packages added when missing: on 26.04 and 24.04, when neither linux-firmware-amd-graphics nor linux-firmware is installed, the first of them apt has a candidate for; on 22.04 linux-firmware when it is not installed; on 24.04 and 22.04 linux-modules-extra-$(uname -r) when the kernel has no amdgpu.ko. It dies, before installing anything, if apt has no candidate. On another release no firmware package is checked or installed, and a kernel without amdgpu.ko dies before any change, as on 26.04. The Ryzen APUs (rows with driver => 'inbox') only on 26.04 (GA kernel 7.0) and on 24.04 with the HWE kernel 7.0, both -generic; no kernel is installed. On any other release or kernel (on the 24.04 GA kernel 6.8 the message names the kernel to boot) "install_driver" in Rex::GPU::AMD dies before any change for them, unless their driver already works, which it answers with present (method => 'dkms' dies then too).

  • Radeon GPUs (gfx target rows with matrix => 'radeon', "targets" in Rex::GPU::AMD::Hardware), with either driver, only where AMD's matrix lists them, which is not where it lists the Instinct GPUs: on 26.04 with the GA kernel 7.0, on 24.04 with the HWE kernel 7.0 and on 22.04 with the HWE kernel 6.8, all -generic ("radeon_unsupported"). On the 24.04 GA kernel 6.8, the 22.04 GA kernel 5.15 or another release "install_driver" in Rex::GPU::AMD dies before any change for them, naming the kernel; no kernel is installed. A working driver is answered with present, as everywhere. That the Radeon list binds inbox too, and not only the amdgpu-dkms the matrix names, is this distribution's reading: the matrix lists the operating systems per GPU table.

release_data

The row of this Ubuntu release (VERSION_ID), undef for another one:

release  amdgpu-dkms kernels  Radeon GPUs  inbox-only GPUs (APUs)  ROCm repo
26.04    7.0                  7.0          7.0                     ubuntu2604
24.04    6.8, 7.0             7.0 (HWE)    7.0 (HWE)               ubuntu2404
22.04    5.15, 6.8            6.8 (HWE)    --                      ubuntu2204

Kernels are the MAJOR.MINOR of a -generic uname -r (7.0.0-42-generic), from the ROCm 10.1 compatibility matrix. The amdgpu-dkms kernels are the Instinct table's; the Radeon GPUs (matrix => 'radeon') are bound to their own, for inbox and amdgpu-dkms alike ("radeon_unsupported"). The Radeon and inbox-only columns bind the gfx targets of those GPUs for "install_rocm" in Rex::GPU::AMD too.

kernel_series

MAJOR.MINOR of the running kernel if it is a -generic one, else undef (no other flavour is in AMD's matrix).

radeon_unsupported

undef when the running kernel is one "release_data" lists for the Radeon GPUs on this release (-generic), else the reason, naming the kernel series; on a release without a row the reason of "radeon_unsupported" in Rex::GPU::AMD::Setup. Host-read-only.

SEE ALSO

Rex::GPU::AMD::Setup, Rex::GPU::AMD::Setup::Apt

SUPPORT

Issues

Please report bugs and feature requests at https://github.com/Getty/rex-gpu/issues.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <getty@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.