Comfy-Org / Comfy-Org/ComfyUI

How to get rocm running on R9 390 series?

Open
#6,680 4 comments 0 reactions 0 assignees View on GitHub
User Support
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Your question

Been pulling my hair out (figuratively of course) on how to get ROCm running on R9 390, I know its like 10 years old but my only problem with it is that I cannot get ROCm to work on it, I am open to alternative solutions to getting comfyUI on my GPU.

### Logs

```
usr_40476@2xeon:~/APPS/ComfyUI> python3.12 main.py
Traceback (most recent call last):
File "/home/usr_40476/APPS/ComfyUI/main.py", line 91, in
import execution
File "/home/usr_40476/APPS/ComfyUI/execution.py", line 13, in
import nodes
File "/home/usr_40476/APPS/ComfyUI/nodes.py", line 21, in
import comfy.diffusers_load
File "/home/usr_40476/APPS/ComfyUI/comfy/diffusers_load.py", line 3, in
import comfy.sd
File "/home/usr_40476/APPS/ComfyUI/comfy/sd.py", line 5, in
from comfy import model_management
File "/home/usr_40476/APPS/ComfyUI/comfy/model_management.py", line 143, in
total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
^^^^^^^^^^^^^^^^^^
File "/home/usr_40476/APPS/ComfyUI/comfy/model_management.py", line 112, in get_torch_device
return torch.device(torch.cuda.current_device())
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/usr_40476/.local/share/pipx/venvs/pip/lib64/python3.12/site-packages/torch/cuda/__init__.py", line 971, in current_device
_lazy_init()
File "/home/usr_40476/.local/share/pipx/venvs/pip/lib64/python3.12/site-packages/torch/cuda/__init__.py", line 319, in _lazy_init
torch._C._cuda_init()
RuntimeError: No HIP GPUs are available
usr_40476@2xeon:~/APPS/ComfyUI>
```

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.