Skip to content

HW Exception by GPU node-1 (Agent handle: 0x55dc6e221990) reason :GPU Hang on AMD Ryzen 7 7840HS w/ Radeon 780M Graphics #257

Description

@Ep0chalypse

I'm experiencing this issue when trying to run stable diffusion. I'm using the rdna3 docker image(via podman) on Almalinux 10 running the latest kernel(6.15.6-1.el10.x86_64). The cpu is a AMD Ryzen 7 7840HS w/ Radeon 780M Graphics. In the bios I've allocated the max memory to the GPU(8GB). Possibly related to #141

The pytorch hello world example works:

root@32249188555d:/# cd /opt/rocm_sdk_612/docs/examples/pytorch/
root@32249188555d:/opt/rocm_sdk_612/docs/examples/pytorch# source  /opt/rocm_sdk_612/bin/env_rocm.sh 
root@32249188555d:/opt/rocm_sdk_612/docs/examples/pytorch# ./pytorch_gpu_hello_world.sh
Pytorch version: 2.4.1 
ROCM HIP version: 6.1.40093-d104dca71
cuda device count: 1
default cuda device name: AMD Radeon 780M
device type: cuda
Tensor training running on cuda: True 
Running simple model training test
tensor([0., 1., 2.], device='cuda:0')  
Hello World, test executed succesfully

The full output is:

root@32249188555d:~# sd -M txt2img -p "a cat" -m /opt/rocm_sdk_models/sd-v1-5-pruned-emaonly-fp16.safetensors -o ~/Pictures/test_cat.png
ggml_cuda_init: GGML_CUDA_FORCE_MMQ:    no
ggml_cuda_init: GGML_CUDA_FORCE_CUBLAS: no
ggml_cuda_init: found 1 ROCm devices:
  Device 0: AMD Radeon 780M, compute capability 11.0, VMM: no
[INFO ] stable-diffusion.cpp:195  - loading model from '/opt/rocm_sdk_models/sd-v1-5-pruned-emaonly-fp16.safetensors'
[INFO ] model.cpp:793  - load /opt/rocm_sdk_models/sd-v1-5-pruned-emaonly-fp16.safetensors using safetensors format
[INFO ] stable-diffusion.cpp:235  - Version: SD 1.x
[INFO ] stable-diffusion.cpp:266  - Weight type:                 f16
[INFO ] stable-diffusion.cpp:267  - Conditioner weight type:     f16
[INFO ] stable-diffusion.cpp:268  - Diffusion model weight type: f16
[INFO ] stable-diffusion.cpp:269  - VAE weight type:             f16
[INFO ] stable-diffusion.cpp:482  - total params memory size = 1969.78MB (VRAM 1969.78MB, RAM 0.00MB): clip 235.06MB(VRAM), unet 1640.25MB(VRAM, vae 94.47MB(VRAM), controlnet 0.00MB(VRAM), pmid 0.00MB(VRAM)
[INFO ] stable-diffusion.cpp:501  - loading model from '/opt/rocm_sdk_models/sd-v1-5-pruned-emaonly-fp16.safetensors' completed, taking 0.61s
[INFO ] stable-diffusion.cpp:528  - running in eps-prediction mode
[INFO ] stable-diffusion.cpp:655  - Attempting to apply 0 LoRAs
[INFO ] stable-diffusion.cpp:1132 - apply_loras completed, taking 0.00s
HW Exception by GPU node-1 (Agent handle: 0x55dc6e221990) reason :GPU Hang
Aborted (core dumped)

Steps to reproduce:

  • podman pull lamikr/rocm_sdk_builder:612_01_rdna3
  • podman run -it --device=/dev/kfd --device=/dev/dri --group-add keep-groups --security-opt label=type:container_runtime_t docker.io/lamikr/rocm_sdk_builder:612_01_rdna3 bash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions