mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-05 07:47:40 +00:00
[PR #89] [MERGED] Fix HIP backend device detection on ROCm lazy initialization #138
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-kitchen#138
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-kitchen/pull/89
Author: @derfasthirnlosenick
Created: 7/31/2026
Status: ✅ Merged
Merged: 7/31/2026
Merged by: @comfyanonymous
Base:
main← Head:fix-rocm-device-init📝 Commits (1)
659425bFix HIP backend device detection on ROCm lazy initialization📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
comfy_kitchen/backends/hip/__init__.py(+4 -0)📄 Description
Don't know if I missed this when I tested https://github.com/Comfy-Org/comfy-kitchen/pull/74, but with the current build, it fails to detect my 6800xt (RDNA2) card, as it returned a device count of 0.
The fix seems to relatively easy to initialize the device before counting. I've tested it on my machine and it now correctly returns
I have read and agree to the DCO, although this fix doesn't really have much intellectual property going for it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.