-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation Fault on loading SD #1
Comments
I have a 5600G APU and Stable Diffusion works for me with First, for Ryzen 5 2400GE you should probably use
Notice a Links to ROCm and PyTorch versions I used: ROCm 5.7 with PyTorch for 5.7
ROCm 6.0 with PyTorch for 6.0
|
Thanks a lot @qkiel for the info! I will update the project's README with your instructions. |
@qkiel I think it may be worth taking notes 1. Find HSA_OVERRIDE_GFX_VERSION valueYou can use the following command to check, e.g. AMD Ryzen 6800U $ rocminfo | grep gfx
Name: gfx1030
Name: amdgcn-amd-amdhsa--gfx1030 Then my value would be 2. Store all the value in
|
I guess I need to confirm the use-case for this. I have an HP AMD-based Elitebook 705 G4 mini with a Ryzen 5 2400GE CPU. The BIOS doesn't allow me to set the iGPU dedicated RAM greater than 1GB. I was hoping to use this as a means to get around the BIOS limitation and have pytorch actually use the GTT shared RAM as VRAM. If it is not intended to allow pytorch/SD to do that, then the segfault is probably due to having only 1GB of VRAM available to ROCm and I'm out of luck trying to do anything other than CPU-only mode on this system.
I'm running Ubuntu 22.04, ROCm 5.6.1, Python 3.10.12. I get a segfault when trying to start SD:
./webui.sh: line 256: 49971 Segmentation fault (core dumped) "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@"
ROCm SMI output is below:
========================= ROCm System Management Interface =========================
=================================== Concise Info ===================================
GPU[0] : get_power_avg, Not supported on the given system
ERROR: GPU[0] : sclk clock is unsupported
GPU[0] : get_power_cap, Not supported on the given system
GPU Temp (DieEdge) AvgPwr SCLK MCLK Fan Perf PwrCap VRAM% GPU%
0 50.0c N/A None 933Mhz 0% auto Unsupported 7% 100%
=============================== End of ROCm SMI Log ================================
radeontop shows GTT memory is allocated as intended:
I've tried various startup options, such as the one shown below, but continue to get the segfault error whatever options I choose.
LD_PRELOAD=/libforcegttalloc.so HSA_OVERRIDE_GFX_VERSION=10.3.0 ./webui.sh --listen --lowvram --opt-sub-quad-attention --precision full --no-half
Would appreciate a confirmation whether or not this should work. Thanks.
The text was updated successfully, but these errors were encountered: