|
|
|
|
|
by iod
1371 days ago
|
|
Stable Diffusion works fine for me on my RDNA2 gfx1031 ( RX6700 XT ) under Debian. If you are on a Linux kernel with amdgpu, have your distro's latest version of ROCm HIP runtime, and a relatively recent AMD GPU, you just need to replace the default pytorch with the ROCm HIP version. # Install your distro's HIP runtime and rocminfo
$ apt install rocminfo hip-runtime-amd # for debian and derivatives
# Confirm ROCm is installed properly and confirm your gpu is supported
$ rocminfo
ROCk module is loaded
...
Name: gfx1031
Marketing Name: AMD Radeon RX 6700 XT
...
# Must uninstall any non-ROCm torch libs
$ pip3 uninstall torch torchvision torchaudio
# Install latest ROCm pytorch, see website for more versions
$ pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/rocm5.1.1
# Required env for unofficially supported newer gpu's like gfx1030 & gfx1031 that give error "hipErrorNoBinaryForGpu", can be added to /etc/environment to make permanent
$ export HSA_OVERRIDE_GFX_VERSION=10.3.0
# Test torch HIP is working
$ python3
>>> import torch
>>> torch.cuda.is_available()
True
>>> quit()
# Run Stable Diffusion workloads like normal...
Hope this points people in the right direction with AMD GPUs.Blender can also take advantage of the installed HIP runtime for render acceleration in the latest versions too once you enable the setting in preferences. |
|