Install AMD ROCm 5.7 on Debian Bookworm (stable)

 

Update: As of May 2024, ROCm 6 is much easier to install see here.

So far, AMD does not yet officially support Debian in ROCm. Only RHEL, SLES and Ubuntu are supported in ROCM 5.7.1. On the Debian side there is a team working on providing support in the next release.

 However, one can install ROCm on Debian Bookworm using the amdgpu-install tool for Ubuntu.

wget https://repo.radeon.com/amdgpu-install/5.7.1/ubuntu/jammy/amdgpu-install_5.7.50701-1_all.deb
sudo apt install ./amdgpu-install_5.7.50701-1_all.deb

 Then one can install rocm step-by-step. 

Kernel Driver

First install the amdgpu kernel dkms:

sudo amdgpu-install --usecase=dkms

 If a custom kernel is used, this will not directly work, because only kernel up to 6.2 are suupported. Otherwise exclude the custom kernels with:

BUILD_EXCLUSIVE_KERNEL=”^(6.[0-2]..*|5..*)”

in /etc/dkms/amdgpu.conf

ROCm

 ROCm only supports Python 3.10, unfortunately this is no longer available in Debian Bookworm. However python3.10 can be installed from Debian Sid.

wget http://ftp.debian.org/debian/pool/main/p/python3.10/python3.10_3.10.13-1_amd64.deb

sudo dpkg -i python3.10_3.10.13-1_amd64.deb

Then install ROCm

sudo amdgpu-install –usecase=rocm

 Check the install with:

rocminfo

Also add your user to these groups:

sudo usermod -a -G render,video $LOGNAME

5 responses to “Install AMD ROCm 5.7 on Debian Bookworm (stable)”

  1. Bravo! I think I will TAKE A TRY!

  2. The link to Python3.10 is a dead link now, in case you know of another place, please advice.

    1. you could check the mirror link from Steve

  3. python3.10_3.10.13-1_amd64.deb is no longer on that repo

  4. The python deb was at

    https://mirror.5i.fi/debian2/pool/main/p/python3.10/

    (at least in July 2024)

Leave a Reply

Your email address will not be published. Required fields are marked *