Sign In

how to install rocm on opensuse/suse

May 14, 2024
tool guide
how to install rocm on opensuse/suse

Support is being discontinued, if someone would like to take over, let me know and I'll link your new guide(s)

update: for people who are waiting on windows, it is unlikely they will support older versions, and the probability of the rest on the list at windows support listed being supported is slim, because they are gonna drop rocm in 2-3 years when they release the 8000 series.

note: even more reason to use linux over windows if intent is mostly AI:

doesnt have hipify or AI pytorch support on their windows ROCM

Additional note: if you have a iGPU, and you have a actual GPU, then you will likely need to lookup a guide for swapping your primary graphics renderer to the actual GPU for this.

to start:

zypper ar -f -p 100 obs://home:simonizor:zow home_simonizor_zow

zypper ref home_simonizor_zow

zypper in zow

zow install git python-pip wget make perl-URI-Encode python


extract using ark or whatever

cd to directory



sudo make install

^ all dependencies next do:

sudo zypper ref

sudo zypper install rocm-hip-libraries

now go open YaST and go to software> scroll down to user group and management> select that > groups tab > set filter top right > system groups edit the video and render groups to add yourself to them

Edit ~/.profile with your editor of choice.

sudo nano ~/.profile


sudo nano /etc/environment

the difference is environment applies on boot whereas the profile applies to specified user. note to remove the "export" word if you put in environment.

Paste the following line at the bottom of the file, then press ctrl-x and save the file before exiting.


(change the version number to 11.0.0 for 7000 series)

Now make sure to restart your computer before continuing.

after reboot

do this in either home folder or you can do:

git clone

cd stable-diffusion-webui


before hand to skip some pain in having to reinstall the pytorch

now activate the venv using

python3 -m venv venv

. venv/bin/activate

you will now see "(venv)" beside the front of console

we want to seperate these two commands so that it will install in necessary order for it to install "WHL"

pip3 install wheel


pip3 install torch torchvision torchaudio --index-url


pip3 install --pre torch torchvision torchaudio --index-url

Let's verify PyTorch was installed correctly with GPU support, so lets first enter the Python console.


Now enter the following two lines of code. If it returns True then everything was installed correctly.

import torch


Then enter exit() to exit the Python console.

If you see a warning mentioning “Cannot locate TCMalloc (improves CPU memory usage)”, then you can improve performance by installing the following package before running the application again:

zow install gperftools

Change this line in to this:

# python3 executable


after that finishes run remember first gen takes a minute

Note: if you get this error:

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/ellia/stable-diffusion-webui/venv/lib/python3.11/site-packages/cv2/qt/plugins" even though it was found.

This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.

/usr/bin/xdg-open: line 634: 12402 Aborted (core dumped) kde-open${KDE_SESSION_VERSION} "$1"

you need to do 1 thing

1: go to stable-diffusion-webui/venv/lib/python3.11/site-packages/cv2/qt/plugins/platforms/ and delete the xcb file there and re open

If you would like to help bring xformers to AMD please refer to this issue and participate testing, make sure to include your specs