To use this container you would first need to install docker and docker-compose.
After that you would need deleted rocm/composable_kernel:ck_ub20.04_rocm5.5_rc4 docker image (alpha build of ROCM). You can download the image, using bittorect magnet link in the files of the gist. After downloading the image load it with docker load --input rocm5.5.tar.gz
Running is as simple as: sudo docker-compose up --build. After that Stable Diffusion Web UI could be accessed in http://127.0.0.1:3000
Many thanks to @wsippel for putting up step by step guide to get it working.
This is tested on kernel 6.2.10 and mesa 23.0.0
@GianlucaMattei
Did you install ROCm via
amdgpu-install
beforehand?curl -O https://repo.radeon.com/amdgpu-install/5.6/ubuntu/jammy/amdgpu-install_5.6.50600-1_all.deb sudo dpkg -i amdgpu-install_5.6.50600-1_all.deb # opencl might cause issues later, so don't add opencl unless you know what you are doing sudo amdgpu-install --usecase=graphics,rocm sudo reboot
If ROCm is installed, can you run
rocminfo
androcm-smi
and check the printed logs?Both commands should exist and work if ROCm is correctly installed, and you can find your RX 7900 XT in the log.
export HSA_OVERRIDE_GFX_VERSION=11.0.0
makes every GPU recognized as RX 7900 XT/XTX.It's recommended for generally every application running with Navi 31 (not sure about other Navi 3x but should work too).
This should not cause problems on Navi 31, but if you are concerned you can remove it.
stable-diffusion-webui
might work without it, buttext-generation-webui
needs both of them if I remember correctly.export HIP_VISIBLE_DEVICES=0
makes only the first GPU visible to the application.This avoid the application using unsupported iGPU and is recommended too.
If your RX 7900 XT is not the first GPU listed in
rocminfo
, you should change the number accordingly.