🌐
Arch Linux
aur.archlinux.org β€Ί packages β€Ί python-torchvision-rocm
AUR (en) - python-torchvision-rocm - Arch Linux
April 18, 2022 - @TheJackiMonster are you trying use package with nvidia GPU? This package is for AMD ROCm. For cuda there is torchvision-cuda in official Arch repo
🌐
AMD ROCm
rocm.docs.amd.com β€Ί projects β€Ί install-on-linux β€Ί en β€Ί develop β€Ί install β€Ί 3rd-party β€Ί pytorch-install.html
PyTorch on ROCm installation β€” ROCm installation (Linux)
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm7.2 ... The above command uses the ROCm 7.2 PyTorch wheel.
Discussions

ROCm 6.1.3 complete install instructions from WSL to pytorch
Thank you so much for this, I was trying to get pytorch installed in WSL the other day and was pulling my hair out! More on reddit.com
🌐 r/ROCm
51
45
August 10, 2024
How can i set up linux, rocm, pytorch for 7900xtx?
I wouldn’t touch windows with a 10ft pole for ROCm. Start with ubuntu 22.04.3, it has support for ROCm 5.7.0 and β€œshould” (see note at the end) work best with the 7900xtx. AMD’s documentation on getting things running has worked for me, here are the prerequisites. Do these before you attempt installing ROCm. To actually install ROCm itself use this portion of the documentation. Lastly you wanted to use PyTorch. AMD gives a few options but they recommend using a docker image with PyTorch pre-installed. Assuming you know how to get docker all set up, this is listed as option 1 you can skip the other options and head to the bottom of the page if you need instructions on how to test your installation. My only recommendation outside of AMD’s documentation is to try an updated kernel version from what Ubuntu 22.04.3 ships with. Newer kernels have better support for the 7900xtx so this may solve some weird issues you may or may not run into. Ubuntu 23.04.X will ship with a more updated kernel, so you can start with that version instead if you prefer (although not officially supported but neither is the 7900xtx so make of that as you will). Or you can just swap kernel versions on 22.04.3 if you’d rather do that (also not officially supported). If you do want to go the nvidia route I’d pass on the 4090 and look for the 3090 on the used market to save some money, and I’m assuming the more important factor of your card is having 24gb of vram, not so much the higher speed. More on reddit.com
🌐 r/ROCm
20
6
October 14, 2023
Failed to compile torchvision for ROCm as documented in pytorch.org
Bug Failed to compile torchvision for ROCm as documented in pytorch.org/get-started To Reproduce Steps to reproduce the behavior: as in: https://pytorch.org/get-started/locally/ python -m venv pt... More on github.com
🌐 github.com
2
April 11, 2021
Pytorch rocm install error. How to fix this? - Stack Overflow
import torchvision /home/vic/.... warn(f"Failed to load image Python extension: {e}") ... try this use the --upgrade as folloing sudo pip3 install torch torchvision --upgrade --force-reinstall --extra-index-url https://download.pytorch.org/whl/rocm5.2... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Manjaro Linux
forum.manjaro.org β€Ί support β€Ί aur
Build error with "python-torchvision-rocm" Package - AUR - Manjaro Linux Forum
March 31, 2023 - Trying to install the β€œpython-torchvision-rocm” Package from the AUR as a prerequisite to get my AMD RX 6600XT to work with Automatic 1111 Stable Diffusion Web UI; however I get a build error that outputs this: [100%] Linking CXX shared library libtorchvision.so [100%] Built target torchvision Traceback (most recent call last): File "/home/username/python-torchvision-rocm/src/vision-0.14.1/setup.py", line 9, in ERROR:...
🌐
AMD ROCm
rocm.docs.amd.com β€Ί projects β€Ί radeon-ryzen β€Ί en β€Ί latest β€Ί docs β€Ί install β€Ί installrad β€Ί windows β€Ί install-pytorch.html
PyTorch via PIP installation β€” Use ROCm on Radeon and Ryzen
pip install --no-cache-dir ` https://repo.radeon.com/rocm/windows/rocm-rel-7.2.1/torch-2.9.1+rocm7.2.1-cp312-cp312-win_amd64.whl ` https://repo.radeon.com/rocm/windows/rocm-rel-7.2.1/torchaudio-2.9.1+rocm7.2.1-cp312-cp312-win_amd64.whl ` https://repo.radeon.com/rocm/windows/rocm-rel-7.2.1/torchvision-0.24.1+rocm7.2.1-cp312-cp312-win_amd64.whl Β· Confirm if PyTorch is correctly installed. Verify if Pytorch is installed and detecting the GPU compute device. python -c "import torch" 2>nul && echo Success || echo Failure
🌐
Arch Linux
aur.archlinux.org β€Ί packages β€Ί torchvision-rocm
python-torchvision-rocm - AUR (en) - Arch Linux
@TheJackiMonster are you trying use package with nvidia GPU? This package is for AMD ROCm. For cuda there is torchvision-cuda in official Arch repo
🌐
Reddit
reddit.com β€Ί r/rocm β€Ί rocm 6.1.3 complete install instructions from wsl to pytorch
r/ROCm on Reddit: ROCm 6.1.3 complete install instructions from WSL to pytorch
August 10, 2024 -

Its a bit tricky, but I got it working for me with my RX 7900XTX on Windows 11. They said native Windows support for ROCm is coming, but my guess is that it will be another year or two until it will be released, so currently only WSL with ubuntu on windows.

The problem is the documentation has gotten better but for someone who doesnΒ΄t want to spend hours on it, here is my stuff which works.

So the documentation sites I got all of it from are those:

rocm.docs.amd.com/en/latest/

rocm.docs.amd.com/projects/radeon/en/latest/index.html

rocm.docs.amd.com/projects/radeon/en/latest/docs/install/wsl/howto_wsl.html

rocm.docs.amd.com/projects/radeon/en/latest/docs/install/wsl/install-radeon.html

rocm.docs.amd.com/projects/radeon/en/latest/docs/install/wsl/install-pytorch.html

But as a short instruction here is the installation instructions from start to finish.

First install WSL and the currently only supported distribution of linux for WSL with ROCm which is 22.04 using cmd in admin mode, you will need to setup a username and password for the distribution once its installed.

wsl --install -d Ubuntu-22.04

then after install do this inside the distribution in which you can get to in cmd using command:

wsl

then to just update the install of ubuntu to the newest version for its components do those two commands:

sudo apt-get update

sudo apt-get upgrade

then to install the drivers and install rocm do this:

sudo apt update

wget https://repo.radeon.com/amdgpu-install/6.1.3/ubuntu/jammy/amdgpu-install_6.1.60103-1_all.deb

sudo apt install ./amdgpu-install_6.1.60103-1_all.deb

amdgpu-install -y --usecase=wsl,rocm --no-dkms

And then you have the base of rocm and the driver installed, then you need to install python and pytorch. Notice the only supported version is Python 3.10 with pytorch 2.1.2 as of my knowledge.

To install python with pytorch follow those instructions, as of my last use it will automatically install python 3.10:

sudo apt install python3-pip -y

pip3 install --upgrade pip wheel

wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1.3/torch-2.1.2%2Brocm6.1.3-cp310-cp310-linux_x86_64.whl

wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1.3/torchvision-0.16.1%2Brocm6.1.3-cp310-cp310-linux_x86_64.whl

wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1.3/pytorch_triton_rocm-2.1.0%2Brocm6.1.3.4d510c3a44-cp310-cp310-linux_x86_64.whl

pip3 uninstall torch torchvision pytorch-triton-rocm numpy

pip3 install torch-2.1.2+rocm6.1.3-cp310-cp310-linux_x86_64.whl torchvision-0.16.1+rocm6.1.3-cp310-cp310-linux_x86_64.whl pytorch_triton_rocm-2.1.0+rocm6.1.3.4d510c3a44-cp310-cp310-linux_x86_64.whl numpy==1.26.4

The next is just updating to the WSL compatible runtime lib:

location=`pip show torch | grep Location | awk -F ": " '{print $2}'`

cd ${location}/torch/lib/

rm libhsa-runtime64.so*

cp /opt/rocm/lib/libhsa-runtime64.so.1.2 libhsa-runtime64.so

Then everything should be setup and running. To check if it worked use those commands in WSL:

python3 -c 'import torch; print(torch.cuda.is_available())'

python3 -c "import torch; print(f'device name [0]:', torch.cuda.get_device_name(0))"

python3 -m torch.utils.collect_env

Hope those instructions help other lost souls who are trying to get ROCm working and escape the Nvidia monopoly but unfortunately I have also an Nvidia RTX 2080ti and my RX 7900XTX can do larger batches in training, but is like a third slower than the older Nvidia card, but in Inference I see similar speeds.
Maybe someone has some optimization ideas to get it up to speed?

The support matrix for the supported GPUs and Ubuntu versions are here:

https://rocm.docs.amd.com/projects/radeon/en/latest/docs/compatibility/wsl/wsl_compatibility.html

If anything went wrong I can test it again. Hope also the links to the specific documentation sites are helpful if anything slightly changes from my installation instructions.

Small endnote, it took me months and hours of frustration to get this instructions working for myself, hope I spared you from that with this. And I noticed that if I only used another version of pytorch than the one above it will not work, even if they say pytorch in the nightly build with version 2.5.0 is supported, believe me I tried and it did not work.

🌐
Arch Linux
aur.archlinux.org β€Ί packages β€Ί python-torchvision-rocm-bin
python-torchvision-rocm-bin - AUR (en) - Arch Linux
April 30, 2024 - python-scipy (python-scipy-gitAUR, python-scipy-mkl-binAUR, python-scipy-mkl-tbbAUR, python-scipy-mklAUR) ... Show 62 more... https://download.pytorch.org/whl/rocm6.3/torchvision-0.22.0+rocm6.3-cp313-cp313-linux_x86_64.whl
🌐
AMD ROCm
rocm.docs.amd.com β€Ί projects β€Ί install-on-linux β€Ί en β€Ί docs-6.0.0 β€Ί how-to β€Ί 3rd-party β€Ί pytorch-install.html
Installing PyTorch for ROCm β€” ROCm installation (Linux)
Check System requirements (Linux) and install ROCm using the directions in the ROCm installation options section. Install the required dependencies for the wheels package. sudo apt update sudo apt install libjpeg-dev python3-dev python3-pip pip3 install wheel setuptools Β· Install torch, torchvision, and torchaudio, as specified in the installation matrix.
Find elsewhere
🌐
PyTorch
pytorch.org β€Ί blog β€Ί pytorch-for-amd-rocm-platform-now-available-as-python-package
PyTorch for AMD ROCmβ„’ Platform now available as Python package – PyTorch
March 24, 2021 - PyTorch users can install PyTorch for ROCm using AMD’s public PyTorch docker image, and can of course build PyTorch for ROCm from source. With PyTorch 1.8, these existing installation options are now complemented by the availability of an installable Python package.
🌐
AMD ROCm
rocm.docs.amd.com β€Ί projects β€Ί radeon β€Ί en β€Ί latest β€Ί docs β€Ί install β€Ί native_linux β€Ί install-pytorch.html
Install PyTorch for ROCm β€” Use ROCm on Radeon GPUs
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.4.2/torch-2.6.0+rocm6.4.2.git76481f7c-cp312-cp312-linux_x86_64.whl wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.4.2/torchvision-0.21.0+rocm6.4.2.git4040d51f-cp312-cp312-linux_x86_64.whl wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.4.2/pytorch_triton_rocm-3.2.0+rocm6.4.2.git7e948ebf-cp312-cp312-linux_x86_64.whl wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.4.2/torchaudio-2.6.0+rocm6.4.2.gitd8831425-cp312-cp312-linux_x86_64.whl pip3 uninstall torch torchvision pytorch-triton-rocm pip3 install torch-2.6.0+rocm6.4.
🌐
Reddit
reddit.com β€Ί r/rocm β€Ί how can i set up linux, rocm, pytorch for 7900xtx?
r/ROCm on Reddit: How can i set up linux, rocm, pytorch for 7900xtx?
October 14, 2023 -

I've been researching hundreds of posts over the past weeks with no luck.I tried doing it docker desktop for windows, but i wouldn't mind just having a linux on another disk to boot from, and have it all there.Linux isn't my first choice, but is the only one with pytorch rocm support afaik.

I'm studying applied statistics masters program, where I will meet with ML, which is what interest me the most, by the end of the year. I want to get ready beforehand, and try out a few available options such as deepfilternet, whisper, llama2, stable difusion... i hope you can recommend me some more, but for that i first need to get anything working at all.

Here's a complete list of commands out of my notepad++ i've encountered so far, but i think i need a differently guided way to do this as i cannot get the gpu detected.

Pretty sure I read the latest versions of rocm should support gfx1100, but the in combination with which os/image, kernel, headers&modules, rocm,...

If anyone can help me set this up I'd be supper grateful.

docker run -it --privileged --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --device=/dev/kfd --device=/dev/dri --group-add video --ipc=host --shm-size 24G rocm/pytorch:latest
sudo apt list --installed
sudo apt update
sudo apt-get update
sudo apt upgrade -y

https://askubuntu.com/questions/1429376/how-can-i-install-amd-rocm-5-on-ubuntu-22-04

wget https://repo.radeon.com/amdgpu-install/5.3/ubuntu/focal/amdgpu-install_5.3.50300-1_all.deb
sudo apt-get install ./amdgpu-install_5.3.50300-1_all.deb -y --allow-downgrades

pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/rocm5.5
pip install --pre torch torchvision --index-url

https://download.pytorch.org/whl/nightly/rocm5.5--allow-downgrades
wget https://repo.radeon.com/amdgpu-install/latest/ubuntu/focal/amdgpu-install_5.7.50700-1_all.deb  -y
sudo apt-get install ./amdgpu-install_5.7.50700-1_all.deb -y

sudo apt install amdgpu
sudo amdgpu-install --usecase=rocm -y
sudo apt install amdgpu-dkms -y
sudo apt install rocm-hip-sdk -y
sudo dpkg --purge amdgpu-dkms -y
sudo dpkg --purge amdgpu -y
sudo apt-get remove amdgpu-dkms -y
sudo apt-get install amdgpu-dkms -y
sudo apt autoremove
wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add -
echo 'deb [arch=amd64] https://repo.radeon.com/amdgpu/latest/ubuntu jammy main' | sudo tee /etc/apt/sources.list.d/amdgpu.list



sudo apt install linux-modules-extra-5.4.0-64-generic linux-headers-5.4.0-64-generic
sudo apt remove linux-modules-extra-5.8.0-44-generic linux-headers-5.8.0-44-generic
sudo apt remove linux-modules-extra-5.4.0-164-generic linux-headers-5.4.0-164-generic

sudo apt --fix-broken install -y
sudo dpkg --purge amdgpu-dkms
sudo dpkg --purge amdgpu -y
sudo apt-get install amdgpu -y
sudo apt update -y
sudo apt upgrade -y


rocminfo | grep gfx
rocminfo 

Hope it's not too disorganized, commands were used in different combos on different containers from "rocm/pytorch:latest" image. As i started from there, i hoped it would have these things ready with the gpu supported out of the box. I'm probably missing something obvious to you guys.

edit:

should i just give up and get nvidia? :( I really want to support amd, 1200 vs 2000eur isn't that little to a student.

Top answer
1 of 7
8
I wouldn’t touch windows with a 10ft pole for ROCm. Start with ubuntu 22.04.3, it has support for ROCm 5.7.0 and β€œshould” (see note at the end) work best with the 7900xtx. AMD’s documentation on getting things running has worked for me, here are the prerequisites. Do these before you attempt installing ROCm. To actually install ROCm itself use this portion of the documentation. Lastly you wanted to use PyTorch. AMD gives a few options but they recommend using a docker image with PyTorch pre-installed. Assuming you know how to get docker all set up, this is listed as option 1 you can skip the other options and head to the bottom of the page if you need instructions on how to test your installation. My only recommendation outside of AMD’s documentation is to try an updated kernel version from what Ubuntu 22.04.3 ships with. Newer kernels have better support for the 7900xtx so this may solve some weird issues you may or may not run into. Ubuntu 23.04.X will ship with a more updated kernel, so you can start with that version instead if you prefer (although not officially supported but neither is the 7900xtx so make of that as you will). Or you can just swap kernel versions on 22.04.3 if you’d rather do that (also not officially supported). If you do want to go the nvidia route I’d pass on the 4090 and look for the 3090 on the used market to save some money, and I’m assuming the more important factor of your card is having 24gb of vram, not so much the higher speed.
2 of 7
4
I have no experience with Docker, but the 7900XTX works fine with Ubuntu 22.0.4.3 LTS aka Jammy, which I have installed as dual boot beside Win 11. So far I only played around a bit with Stable Diffusion to check the performance and help others with AMD out, because I have another rig with a 4090. Anyway this is how I did if for my Ubuntu dual boot Prerequisites: sudo apt update && sudo apt install -y git python3-pip python3-venv python3-dev libstdc++-12-dev install the amdgpu driver with rocm support curl -O https://repo.radeon.com/amdgpu-install/5.7.1/ubuntu/jammy/amdgpu-install_5.7.50701-1_all.deb (*) Initially I used an older driver (5.6 which I later upgraded). sudo dpkg -i amdgpu-install_5.7.50701-1_all.deb sudo amdgpu-install --usecase=graphics,rocm grant current user the access to gpu devices sudo usermod -aG video $USER sudo usermod -aG render $USER reboot is needed to make both driver and user group take effect sudo reboot If you have secure boot you need to enroll the MOK key on reboot, an old school looking menu will pop up on reboot where you have to enter the password you chose in Linux. Now for Stable Diffusion: git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui cd stable-diffusion-webui/ python3 -m venv venv source venv/bin/activate pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm5.7 Optional: edit webui-user.sh to uncomment and add arguments e.g. export COMMANDLINE_ARGS="--ckpt-dir /home/username/SD/MODELS" ./webui.sh β†’ will install all additional requirements After start of web ui the bottom line should show something like this: torch: 2.2.0.dev20231013+rocm5.7 If you encounter problems, here is a nice script to check a Python venv if the PyTorch+ROCm installation really works: https://gist.github.com/damico/484f7b0a148a0c5f707054cf9c0a0533
🌐
GitHub
github.com β€Ί pytorch β€Ί vision β€Ί issues β€Ί 3658
Failed to compile torchvision for ROCm as documented in pytorch.org Β· Issue #3658 Β· pytorch/vision
April 11, 2021 - ptamd/lib/python3.8/site-packages/torch/include/c10/util/complex.h:9:10: fatal error: 'thrust/complex.h' file not found #include <thrust/complex.h> ^~~~~~~~~~~~~~~~~~ 1 error generated when compiling for gfx803. PyTorch version: 1.8.1+rocm4.0.1 Is debug build: False ROCM used to build PyTorch: 4.0.20496-4f163c68 OS: CentOS Linux 8 (x86_64) GCC version: (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5) # same on GCC 10 Python version: 3.8 (64-bit runtime) Is CUDA available: True GPU models and configuration: Vega 20 HIP runtime version: 3.21.2 MIOpen runtime version: 2.9.0 Versions of relevant libraries: [pip3] numpy==1.20.2 [pip3] torch==1.8.1+rocm4.0.1
Author Β  pytorch
🌐
AMD ROCm
rocm.docs.amd.com β€Ί projects β€Ί radeon-ryzen β€Ί en β€Ί latest β€Ί docs β€Ί install β€Ί installrad β€Ί native_linux β€Ί install-pytorch.html
Install PyTorch for ROCm β€” Use ROCm on Radeon and Ryzen
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2.1/torch-2.9.1+rocm7.2.1.lw.gitff65f5bc-cp312-cp312-linux_x86_64.whl wget https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2.1/torchvision-0.24.0+rocm7.2.1.gitb919bd0c-cp312-cp312-linux_x86_64.whl wget https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2.1/triton-3.5.1+rocm7.2.1.gita272dfa8-cp312-cp312-linux_x86_64.whl wget https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2.1/torchaudio-2.9.0+rocm7.2.1.gite3c6ee2b-cp312-cp312-linux_x86_64.whl pip3 uninstall torch torchvision triton torchaudio pip3 install torch-2.9.1+rocm7.2.1.lw.gitff65
🌐
GitHub
gist.github.com β€Ί jurgonaut β€Ί 462a6bd9b87ed085fa0fe6c893536993
Install AMD GPU ROCm and PyTorch on Ubuntu - Gist - GitHub
When installing torch, first check the latest supported ROCm version for torch, by visiting this url https://download.pytorch.org/whl/torch/ and searching for rocm. At the time of the writing the latest version was 5.7 Β· When you find the latest version install the Python dependencies Β· pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/rocm<version>
🌐
Medium
medium.com β€Ί @guinmoon β€Ί building-rocm-7-1-and-pytorch-on-windows-for-unsupported-gpus-my-hands-on-guide-0758d2d2b334
Building ROCm 7.1 and PyTorch on Windows for Unsupported GPUs: My Hands-On Guide | by Artem Savkin | Medium
November 21, 2025 - pip install --find-links D:\b\TheRock\build_gfx103X_1103\packages\dist rocm[libraries,devel] # Adjust pip install "C:\Dev\PytorchRocm7\gfx1103_103X_torch2.10\torch-2.10.0a0+rocmsdk20251118-cp312-cp312-win_amd64.whl" "C:\Dev\PytorchRocm7\gfx1103_103X_torch2.10\torchaudio-2.10.0a0+rocmsdk20251118-cp312-cp312-win_amd64.whl" "C:\Dev\PytorchRocm7\gfx1103_103X_torch2.10\torchvision-0.25.0a0+rocmsdk20251118-cp312-cp312-win_amd64.whl" pip install -r .\requirements.txt ... $env:MIOPEN_FIND_MODE=5 # Speed up first gen # eGPU $env:HIP_VISIBLE_DEVICES="1" python .\main.py --normalvram # iGPU $env:HIP_VISIBLE_DEVICES="0" python .\main.py --normalvram
🌐
Stack Overflow
stackoverflow.com β€Ί questions β€Ί 75493909 β€Ί pytorch-rocm-install-error-how-to-fix-this
Pytorch rocm install error. How to fix this? - Stack Overflow
import torchvision /home/vic/.... warn(f"Failed to load image Python extension: {e}") ... try this use the --upgrade as folloing sudo pip3 install torch torchvision --upgrade --force-reinstall --extra-index-url https://download.pytorch.org/whl/rocm5.2...
🌐
AMD GPUOpen
gpuopen.com β€Ί learn β€Ί pytorch-windows-amd-llm-guide
A beginner's guide to deploying LLMs with AMD on Windows using PyTorch - AMD GPUOpen
pip install --no-cache-dir https://repo.radeon.com/rocm/windows/rocm-rel-6.4.4/torchvision-0.24.0a0+c85f008-cp312-cp312-win_amd64.whl ... The moment of truth. Let’s give our new setup a task: running a small but powerful language model called Llama 3.2 1B. Make sure your Command Prompt still has the (llm-pyt) environment active. If you closed it, just re-open cmd and run llm-pyt\Scripts\activate. ... Copy the entire code block below. Paste it into your Python terminal (where you see the >>>) and press Enter.
🌐
Manjaro Linux
forum.manjaro.org β€Ί support β€Ί aur
Build error with "python-torchvision-rocm" Package - #7 by epecwokhay - AUR - Manjaro Linux Forum
April 1, 2023 - Trying to install the β€œpython-torchvision-rocm” Package from the AUR as a prerequisite to get my AMD RX 6600XT to work with Automatic 1111 Stable Diffusion Web UI; however I get a build error that outputs this: [100%] …
🌐
Reddit
reddit.com β€Ί r/comfyui β€Ί complete rocm 7.0 + pytorch 2.8.0 installation guide for rx 6900 xt (gfx1030) on ubuntu 24.04.2
r/comfyui on Reddit: Complete ROCm 7.0 + PyTorch 2.8.0 Installation Guide for RX 6900 XT (gfx1030) on Ubuntu 24.04.2
September 17, 2025 -

After extensive testing, I've successfully installed ROCm 7.0 with PyTorch 2.8.0 for AMD RX 6900 XT (gfx1030 architecture) on Ubuntu 24.04.2. The setup runs ComfyUI's Wan2.2 image-to-video workflow flawlessly at 640Γ—640 resolution with 81 frames. Here's my verified installation procedure:

πŸš€ Prerequisites

  • Fresh Ubuntu 24.04.2 LTS installation

  • AMD RX 6000 series GPU (gfx1030 architecture)

  • Internet connection for package downloads

πŸ“‹ Installation Steps

1. System Preparation

sudo apt install environment-modules

2. User Group Configuration

Why: Required for GPU access permissions

# Check current groups
groups

# Add current user to required groups
sudo usermod -a -G video,render $LOGNAME

# Optional: Add future users automatically
echo 'ADD_EXTRA_GROUPS=1' | sudo tee -a /etc/adduser.conf
echo 'EXTRA_GROUPS=video' | sudo tee -a /etc/adduser.conf
echo 'EXTRA_GROUPS=render' | sudo tee -a /etc/adduser.conf

3. Install ROCm 7.0 Packages

sudo apt update
wget https://repo.radeon.com/amdgpu/7.0/ubuntu/pool/main/a/amdgpu-insecure-instinct-udev-rules/amdgpu-insecure-instinct-udev-rules_30.10.0.0-2204008.24.04_all.deb
sudo apt install ./amdgpu-insecure-instinct-udev-rules_30.10.0.0-2204008.24.04_all.deb

wget https://repo.radeon.com/amdgpu-install/7.0/ubuntu/noble/amdgpu-install_7.0.70000-1_all.deb
sudo apt install ./amdgpu-install_7.0.70000-1_all.deb
sudo apt update
sudo apt install python3-setuptools python3-wheel
sudo apt install rocm

4. Kernel Modules and Drivers

sudo apt install "linux-headers-$(uname -r)" "linux-modules-extra-$(uname -r)"
sudo apt install amdgpu-dkms

5. Environment Configuration

# Configure ROCm shared objects
sudo tee --append /etc/ld.so.conf.d/rocm.conf <<EOF
/opt/rocm/lib
/opt/rocm/lib64
EOF
sudo ldconfig

# Set library path (crucial for multi-version installs)
export LD_LIBRARY_PATH=/opt/rocm-7.0.0/lib

# Install OpenCL runtime
sudo apt install rocm-opencl-runtime

6. Verification

# Check ROCm installation
rocminfo
clinfo

7. Python Environment Setup

sudo apt install python3.12-venv
python3 -m venv comfyui-pytorch
source ./comfyui-pytorch/bin/activate

8. PyTorch Installation with ROCm 7.0 Support

pip install https://repo.radeon.com/rocm/manylinux/rocm-rel-7.0/pytorch_triton_rocm-3.4.0%2Brocm7.0.0.gitf9e5bf54-cp312-cp312
pip install https://repo.radeon.com/rocm/manylinux/rocm-rel-7.0/torch-2.8.0%2Brocm7.0.0.lw.git64359f59-cp312-cp312-linux_x86_64.whl
pip install https://repo.radeon.com/rocm/manylinux/rocm-rel-7.0/torchvision-0.24.0%2Brocm7.0.0.gitf52c4f1a-cp312-cp312-linux_x86_64.whl
pip install https://repo.radeon.com/rocm/manylinux/rocm-rel-7.0/torchaudio-2.8.0%2Brocm7.0.0.git6e1c7fe9-cp312-cp312-linux_x86_64.whl

9. ComfyUI Installation

git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
pip install -r requirements.txt

βœ… Verified Package Versions

ROCm Components:

  • ROCm 7.0.0

  • amdgpu-dkms: latest

  • rocm-opencl-runtime: 7.0.0

PyTorch Stack:

  • pytorch-triton-rocm: 3.4.0+rocm7.0.0.gitf9e5bf54

  • torch: 2.8.0+rocm7.0.0.lw.git64359f59

  • torchvision: 0.24.0+rocm7.0.0.gitf52c4f1a

  • torchaudio: 2.8.0+rocm7.0.0.git6e1c7fe9

Python Environment:

  • Python 3.12.3

  • All ComfyUI dependencies successfully installed

🎯 Performance Notes

  • Tested Workflow: Wan2.2 image-to-video

  • Resolution: 640Γ—640 pixels

  • Frames: 81

  • GPU: RX 6900 XT (gfx1030)

  • Status: Stable and fully functional

πŸ’‘ Pro Tips

  1. Reboot after group changes to ensure permissions take effect

  2. Always source your virtual environment before running ComfyUI

  3. Check rocminfo output to confirm GPU detection

  4. The LD_LIBRARY_PATH export is essential - add it to your .bashrc for persistence

This setup has been thoroughly tested and provides a solid foundation for AMD GPU AI workflows on Ubuntu 24.04. Happy generating!Complete ROCm 7.0 + PyTorch 2.8.0 Installation Guide for RX 6900 XT (gfx1030) on Ubuntu 24.04.2After
extensive testing, I've successfully installed ROCm 7.0 with PyTorch
2.8.0 for AMD RX 6900 XT (gfx1030 architecture) on Ubuntu 24.04.2. The
setup runs ComfyUI's Wan2.2 image-to-video workflow flawlessly at
640Γ—640 resolution with 81 frames. Here's my verified installation
procedure:πŸš€ PrerequisitesFresh Ubuntu 24.04.2 LTS installation

AMD RX 6000 series GPU (gfx1030 architecture)

This setup has been thoroughly tested and provides a solid foundation for AMD GPU AI workflows on Ubuntu 24.04. Happy generating!

During the generation my system stays fully operational, very responsive and i can continue

-----------------------------

I have a very small PSU, so i set the PwrCap to use max 231 Watt:
rocm-smi

=========================================== ROCm System Management Interface ===========================================

===================================================== Concise Info =====================================================

Device Node IDs Temp Power Partitions SCLK MCLK Fan Perf PwrCap VRAM% GPU%

(DID, GUID) (Edge) (Avg) (Mem, Compute, ID)

========================================================================================================================

0 1 0x73bf, 29880 56.0Β°C 158.0W N/A, N/A, 0 2545Mhz 456Mhz 36.47% auto 231.0W 71% 99%

========================================================================================================================

================================================= End of ROCm SMI Log ==================================================

-----------------------------

got prompt

Using split attention in VAE

Using split attention in VAE

VAE load device: cuda:0, offload device: cpu, dtype: torch.float16

Using scaled fp8: fp8 matrix mult: False, scale input: False

Requested to load WanTEModel

loaded completely 9.5367431640625e+25 6419.477203369141 True

CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cuda:0, dtype: torch.float16

Requested to load WanVAE

loaded completely 10762.5 242.02829551696777 True

Using scaled fp8: fp8 matrix mult: False, scale input: True

model weight dtype torch.float16, manual cast: None

model_type FLOW

Requested to load WAN21

0 models unloaded.

loaded partially 6339.999804687501 6332.647415161133 291

100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2/2 [07:01<00:00, 210.77s/it]

Using scaled fp8: fp8 matrix mult: False, scale input: True

model weight dtype torch.float16, manual cast: None

model_type FLOW

Requested to load WAN21

0 models unloaded.

loaded partially 6339.999804687501 6332.647415161133 291

100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2/2 [06:58<00:00, 209.20s/it]

Requested to load WanVAE

loaded completely 9949.25 242.02829551696777 True

Prompt executed in 00:36:38 on only 231 Watt!

I am happy after trying every possible solution i could find last year and reinstalling my system countless times! Roc7.0 and Pytorch 2.8.0 is working great for gfx1030

executed in 00:36:38 on only 231 Watt!

I am happy after trying every possible solution i could find last year and reinstalling my system countless times! Roc7.0 and Pytorch 2.8.0 is working great for gfx1030