Amdgpu rocm
Jump to navigation
Jump to search
Make sure keyring dir exists
sudo mkdir --parents --mode=0755 /etc/apt/keyrings
Refresh AMD key, same as you already did
wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | \
gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null
Add the missing AMDGPU kernel-driver repo for Ubuntu 24.04 / noble
sudo tee /etc/apt/sources.list.d/amdgpu.list > /dev/null <<'EOF' deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/30.30.3/ubuntu noble main EOF
sudo apt update
Confirm apt now sees it
apt-cache policy amdgpu-dkms
Install prerequisites + driver
sudo apt install "linux-headers-$(uname -r)" "linux-modules-extra-$(uname -r)" sudo apt install amdgpu-dkms
Add yourself for ROCm access, then reboot
sudo usermod -a -G render,video "$LOGNAME" sudo reboot
Test
dkms status | grep -i amdgpu lsmod | grep amdgpu ls /dev/kfd /dev/dri/render* rocminfo | head amd-smi list