ROCm installation help

Hi,

I have a machine with AMD 7000 series GPU and I need to install ROCm in order to utilize the GPU in Podman containers.

I tried to follow the guide:

sudo zypper update
sudo zypper addrepo https://download.opensuse.org/repositories/devel:languages:perl/15.6/devel:languages:perl.repo
sudo zypper addrepo https://download.opensuse.org/repositories/Education/15.6/ Education
sudo zypper install kernel-default-devel
sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups
sudo zypper --no-gpg-checks install https://repo.radeon.com/amdgpu-install/6.2/sle/15.6/amdgpu-install-6.2.60200-1.noarch.rpm
sudo zypper refresh
sudo zypper install amdgpu-dkms rocm

from Quick start installation guide — ROCm installation (Linux) for SUSE enterprise, but it didn’t work.

Could someone help me install this :smiley:
Thank you.

That is a very bad explanation from what you experienced. You give a list of eight (8) commands What happened when you did each of them? Where did you get problems (messages, whatever). Post them here complete (including prompt/command line, all output lines and new prompt line as compter code Posting code or preformatted text - Using Discourse - Discourse Meta )
People here are not clairvoyant.

BTW, one should NOT do zypper up with Tumbleweed, but always zypper dup .

A Repo for Leap on Tumbleweed?

Yes, and this is also for something different:

Yes I suspected the suse enterprise guide wouldnt work but it was the only one I found on AMDs site.

If you want me still to post the error messages I got, I’ll do it later in the evening once I get home.

It was the


sudo zypper --no-gpg-checks install https://repo.radeon.com/amdgpu-install/6.2/sle/15.6/amdgpu-install-6.2.60200-1.noarch.rpm

That failed.

Also Leap…

1 Like

I followed the guides from here:

https://en.opensuse.org/SDB:AMD_GPGPU#AMD_ROCm

and here:

From which I gathered I should do this:

sudo usermod -aG video $USER
sudo usermod -aG render $USER

sudo zypper addrepo https://repo.radeon.com/rocm/zyp/latest/ rocm
sudo zypper addrepo https://download.opensuse.org/repositories/science:/GPU:/ROCm/openSUSE_Factory/ factory
sudo zypper refresh

sudo zypper install rocm

But I get a problem:

Problem: 1: nothing provides 'libdrm-amdgpu' needed by the to be installed rocdecode-0.6.0.60200-sles155.66.x86_64

So it seems I am still missing some repos?

Maybe wrong Repos???

Sources of amdgpu driver

AMD repository for amdgpu, Mesa 3D stuff and etc. is here. Choose appropriate subfolder.
For Leap you can use amdgpu driver from AMD packages or from distribution (xf86-video-amdgpu package). To use amdgpu driver from AMD packages AMD recommends using DKMS. AMD tests ROCm with amdgpu driver + DKMS from AMD packages. Amdgpu driver from distribution works OK and is easily maintained for end user. It is better to use one source of amdgpu driver, otherwise system will hop from one to another.
With Tumbleweed you have to use amdgpu driver from distribution. It is possible to compile AMD drivers for Tumbleweed.
SDB:AMD GPGPU - openSUSE Wiki

What does

" With Tumbleweed you have to use amdgpu driver from distribution. It is possible to compile AMD drivers for Tumbleweed."

mean?

ROCm installation help - #11 by yam →

TW uses newer Linux kernel → newer amdgpu driver.
You can install ROCm without installing amdgpu driver and amdgpu-dkms from Leap.

You need at least minimal adjustments to use TW instead of Leap:

sudo zypper addrepo https://download.opensuse.org/repositories/devel:languages:perl/15.6/devel:languages:perl.repo
sudo zypper addrepo https://download.opensuse.org/repositories/Education/15.6/ Education

-you can use TW packages.
You can use amdgpu & dkms from TW.
The best way is in full recompiling of ROCm - it is possible, because source code is available.

Or use supported distributions via virtualisation or Docker or Distrobox.

I don’t know how I would go about compiling anything really :smiley:

Why is it the best way?

Full control & understanding of what you’re doing.

I doubt I’d have any more of an idea of what I would be doing, but thanks for the reply :smiley:

I now added those two, and those two only (removing any previously added), but now I get:

I No provider of 'rocm' found.

unless I add Index of /rocm/zyp/zypper/, which then again results in the same problem as before of:

Problem: 1: nothing provides 'libdrm-amdgpu' needed by the to be installed rocdecode-0.6.0.60200-sles155.66.x86_64

Delete all previously installed stuff. Then add TW repos instead of Leap’s:

sudo zypper addrepo https://download.opensuse.org/repositories/devel:/languages:/perl/openSUSE_Tumbleweed/ PerlDev
sudo zypper addrepo https://download.opensuse.org/repositories/Education/openSUSE_Tumbleweed/ Education

Instead of

sudo zypper install amdgpu-dkms rocm

use

sudo zypper install rocm

IMHO you’re not ready for heavy lifting which is required by TW.
Use Leap instead.

To get OpenCL support you can simly use Rusticl.

Nothing installed, no repos added is my start point here:

I add the repos in your previous message, refresh, and try

sudo zypper install rocm

as I did in my previous response. I get:

No provider of 'rocm' found.

You have to redo all job:

sudo zypper update
sudo zypper addrepo https://download.opensuse.org/repositories/devel:/languages:/perl/openSUSE_Tumbleweed/ PerlDev
sudo zypper addrepo https://download.opensuse.org/repositories/Education/openSUSE_Tumbleweed/ Education
sudo zypper install kernel-default-devel
sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups
sudo zypper --no-gpg-checks install https://repo.radeon.com/amdgpu-install/6.2/sle/15.6/amdgpu-install-6.2.60200-1.noarch.rpm
sudo zypper refresh
sudo zypper install rocm

This part
sudo zypper --no-gpg-checks install https://repo.radeon.com/amdgpu-install/6.2/sle/15.6/amdgpu-install-6.2.60200-1.noarch.rpm
installs package amdgpu-install, which adds repos, including ROCm repo:

[rocm]
name=ROCm 6.2 repository
baseurl=https://repo.radeon.com/rocm/zyp/6.2/main
enabled=1
gpgcheck=1
gpgkey=file:///etc/amdgpu-install/rocm.gpg.key

Check repos with

zypper lr -d

The best way to install ROCm is via distrobox. Check this issue on GitHub.

IDK about “the best”, but it is good and usable.