comfyanonymous / ComfyUI

The most powerful and modular stable diffusion GUI, api and backend with a graph/nodes interface.
GNU General Public License v3.0
40.7k stars 4.34k forks source link

ROCm Memory access fault #3123

Open wisniew opened 3 months ago

wisniew commented 3 months ago

Using Arch Linux 6.8.1 with venv. CPU: Ryzen 5 3600 RAM: 32GB GPU: Radeon RX 6600 XT

venv creation:

python -m venv venv
source venv/bin/activate
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.0
pip install -r requirements.txt

(the same error using https://download.pytorch.org/whl/rocm5.7)

starting using:

HSA_OVERRIDE_GFX_VERSION=10.3.0 python main.py

After a few seconds of generating image comfyui crash with

Memory access fault by GPU node-1 (Agent handle: 0x629f9f9dae60) on address 0x7cb3770e0000. Reason: Page not present or supervisor privilege.

I was using comfyui before pytorch 2.0 and everything was working fine.

wisniew commented 3 months ago

I want to add that everything from https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/8139 doesn't work. --force-fp32 --lowvram too.