SUSE Linux Enterprise native installation#

Applies to Linux

2024-01-11

4 min read time

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.0/sle/15.5/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.0/sle/15.4/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.0]
name=ROCm6.0
baseurl=https://repo.radeon.com/rocm/zyp/6.0/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-hip-sdk

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. After upgrading the kernel driver, it 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-hip-sdk
# Or for version specific packages:
sudo zypper remove rocm-hip-sdk6.0

Uninstall ROCm packages#

sudo zypper remove rocm-core
# Or for version specific packages:
sudo zypper remove rocm-core6.0

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.0
sudo zypper removerepo amdgpu

# Clear the cache and clean the system.
sudo zypper clean --all

# Restart the system.
sudo reboot