SUSE Linux Enterprise native installation#
Applies to Linux
2024-10-01
4 min read time
Important
Make sure that the Installation prerequisites are met before installing.
Registering ROCm repositories#
Register kernel-mode driver#
sudo tee /etc/zypp/repos.d/amdgpu.repo <<EOF
[amdgpu]
name=amdgpu
baseurl=https://repo.radeon.com/amdgpu/6.2.2/sle/15.6/main/x86_64/
enabled=1
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
EOF
sudo zypper ref
sudo tee /etc/zypp/repos.d/amdgpu.repo <<EOF
[amdgpu]
name=amdgpu
baseurl=https://repo.radeon.com/amdgpu/6.2.2/sle/15.5/main/x86_64/
enabled=1
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
EOF
sudo zypper ref
Register ROCm packages#
sudo tee --append /etc/zypp/repos.d/rocm.repo <<EOF
[ROCm-6.2.2]
name=ROCm6.2.2
baseurl=https://repo.radeon.com/rocm/zyp/6.2.2/main
enabled=1
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
EOF
sudo zypper ref
Installing#
Install kernel driver#
sudo zypper --gpg-auto-import-keys install amdgpu-dkms
sudo reboot
Install ROCm packages#
sudo zypper --gpg-auto-import-keys install rocm
Complete the Post-installation instructions.
Upgrading#
To upgrade an existing ROCm installation to a newer version, follow the steps in Registering ROCm repositories and Installing.
Note
Upgrading the kernel driver may also upgrade the GPU firmware, which requires a system reboot to take effect.
Uninstalling#
Uninstall specific meta packages#
# sudo zypper remove <package-name>
# For example:
sudo zypper remove rocm
# Or, for version specific packages:
sudo zypper remove rocm6.2.2
Uninstall ROCm packages#
sudo zypper remove rocm-core
# Or for version specific packages:
sudo zypper remove rocm-core6.2.2
Uninstall kernel-mode driver#
sudo zypper remove --clean-deps amdgpu-dkms
Remove ROCm and AMDGPU repositories#
# Remove the repositories.
# sudo zypper removerepo <rocm*/amdgpu>
#
# The name of the repositories can be listed with:
sudo zypper repos
# Then remove the 'ROCm' and 'amdgpu' repositories.
# For example:
sudo zypper removerepo ROCm-6.2.2
sudo zypper removerepo amdgpu
# Clear the cache and clean the system.
sudo zypper clean --all
# Restart the system.
sudo reboot