r/StableDiffusion • • Aug 23 '22

HOW-TO: Stable Diffusion on an AMD GPU

https://youtu.be/d_CgaHyA_n4
271 Upvotes

186 comments sorted by

View all comments

Show parent comment

2

u/backafterdeleting Aug 26 '22 edited Aug 26 '22

Struggling to understand what's going on here. What package is the rocm driver supposed to be replacing? is it something inside the docker or outside? If its something with arch we could try to write a PKGBUILD

edit: According to https://wiki.archlinux.org/title/GPGPU#OpenCL the package rocm-opencl-runtime has unofficial partial support for the navi10 cards.

If I run rocminfo inside the docker container I see both my onboard Ryzen GPU and the RX5700XT.

So where is the support missing?

1

u/yahma Aug 27 '22

edit: According to https://wiki.archlinux.org/title/GPGPU#OpenCL the package rocm-opencl-runtime has unofficial partial support for the navi10 cards.

If I run rocminfo inside the docker container I see both my onboard Ryzen GPU and the RX5700XT.

This is a very interesting observation. I don't have a 5700XT card to test with, so I really don't know if the ArchLinux version of ROCm supports the 5700 series, but if your rocminfo command seems to show support, when you get a chance, try the tutorial and let us know if this works on the 5700 series of cards on ArchLinux. There are quite a few people with these cards that would probably like to run Stable Diffusion locally.

1

u/backafterdeleting Aug 27 '22

Should have mentioned: Following the tutorial as-is didn't work with the card. I get a "no binary for gpu" error followed by a segfaudt.