SUSE Linux Enterprise native installation#

Applies to Linux

2024-04-01

5 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.1/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.1/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.1]
name=ROCm6.1
baseurl=https://repo.radeon.com/rocm/zyp/6.1/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.

Multi-version install#

Multi-version install is for the special case, when you need multiple versions of ROCm on the same machine, not just the newest. If you just want to install the latest use the steps in Registering ROCm repositories and Installing.

Register kernel-mode driver#

This step is the same as previously described, follow the steps in Register kernel-mode driver.

Register ROCm packages#

for ver in 6.1.0 6.0.2; do
sudo tee --append /etc/zypp/repos.d/rocm.repo <<EOF
[ROCm-$ver]
name=ROCm$ver
baseurl=https://repo.radeon.com/rocm/zyp/$ver/main
enabled=1
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
EOF
done

sudo zypper ref

Installing#

Install kernel driver.

sudo zypper --gpg-auto-import-keys install amdgpu-dkms
sudo reboot

Install ROCm packages.

for ver in 6.1.0 6.0.2; do
    sudo zypper --gpg-auto-import-keys install rocm$ver
done

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.1

Uninstall ROCm packages#

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

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

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

# Restart the system.
sudo reboot