mirror of
https://github.com/Comfy-Org/comfy-aimdo.git
synced 2026-11-04 23:37:21 +00:00
[PR #68] [CLOSED] Make WDDM init non-fatal so aimdo works under Hyper-V GPU-PV #100
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-aimdo#100
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-aimdo/pull/68
Author: @carmethene
Created: 6/27/2026
Status: ❌ Closed
Base:
master← Head:dev/hyperv-wddm-nonfatal📝 Commits (1)
32b2a48make aimdo_wddm_init non-fatal (fixes startup under Hyper-V GPU-PV)📊 Changes
1 file changed (+5 additions, -2 deletions)
View changed files
📝
src/control.c(+5 -2)📄 Description
Problem
On Windows running under Hyper-V with a paravirtualized GPU (GPU-PV), aimdo fails to initialize.
aimdo_wddm_init()can't resolve a usable DXGI adapter (adapter enumeration / LUID match fails on the paravirtualized device), and becauseinit()treated it as a hard requirement, the whole init aborted viagoto fail.Fix
Treat
aimdo_wddm_init()as best-effort. It already setsg_wddm_adapter = NULLon every failure path, andpoll_budget_deficit():QueryVideoMemoryInfocall withif (g_wddm_adapter), andcuMemGetInfopath regardless,so with no WDDM adapter, budget tracking falls back to CUDA's
cuMemGetInfo, which is adequate. No behavior change on systems where WDDM init succeeds.Testing
Confirmed aimdo now starts and runs on Windows under Hyper-V GPU-PV, where it previously failed at init.
System is a Windows 11 Pro Host/Guest with an RTX 5090.
Contribution Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.