mirror of
https://github.com/Comfy-Org/comfy-aimdo.git
synced 2026-11-04 23:37:21 +00:00
[PR #110] [CLOSED] Fix VBAR reservation using requested size instead of VRAM capacity #121
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#121
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/110
Author: @tvukovic-amd
Created: 9/8/2026
Status: ❌ Closed
Base:
master← Head:fix/vbar-no-capacity-clamp📝 Commits (2)
b326f4aFix VBAR reservation using requested size instead of VRAM capacity2d4e2afFix oversized VBAR allocations📊 Changes
2 files changed (+15 additions, -4 deletions)
View changed files
📝
comfy_aimdo/model_vbar.py(+5 -1)📝
src/model-vbar.c(+10 -3)📄 Description
Summary
Fix
--enable-dynamic-vramcrash on Windows ROCm caused by GPU virtual address space exhaustion in comfy-aimdo VBAR allocation.Problem
On Windows ROCm,
--enable-dynamic-vramcrashes with:vbar_allocateclamps the virtual address reservation tovram_capacity(physical VRAM). When a model is larger than ~1/10 of device capacity, the clamp reserves the entire device capacity as address space instead of the requested size.On large-VRAM devices, the clamped reservations can consume several times the actual model size in GPU virtual address space. Once exhausted,
hipMemAddressReservedoes not returnhipErrorOutOfMemory— it access-violates at0xE0.Fix
Remove the
vram_capacityclamp. Reserve exactly the page-rounded size the caller requested.This PR should land together with the https://github.com/Comfy-Org/ComfyUI/pull/16174 that sizes VBARs from
compute-dtypeweight spans instead ofmodel_size() * 10.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.