mirror of
https://github.com/Comfy-Org/comfy-aimdo.git
synced 2026-11-05 07:47:23 +00:00
[GH-ISSUE #65] A missing cuCtxSynchronize seems to be causing correctness issues or at least nondeterminism #21
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#21
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?
Originally created by @person4268 on GitHub (Jun 22, 2026).
Original GitHub issue: https://github.com/Comfy-Org/comfy-aimdo/issues/65
As a prelude: Apologies for not having proper receipts or reproducers on most of this stuff, I didn't save my test generations and haven't spent my time validating what GLM 5.2 said here thoroughly (but the effect I'm noticing is real for me at least). I'll dump most of my reasoning below, but it does seem to be an comfy-aimdo issue, and the suggested change does seem to fix my issue, so I'll give it that. I don't have a strong enough GPU programming background to actually validate the change.
I am on ComfyUI commit
0d8b7510bdc5409f4a76c3191e122ddea50f4aa2and comfy-aimdo version0.4.10.Hardware: Acer Predator PHN16-71, i7-13700HX, 16GB RAM, 4060 Laptop (8GB VRAM)
I noticed the following behavior:
--disable-dynamic-vramseemed to fix the issue visually, the same generations would produce the same images. This very much suggests to me that it is comfy-aimdo related.That patch was as follows:
It also wrote
if that's useful.
@coderabbitai[bot] commented on GitHub (Jun 22, 2026):
🔗 Related PRs
Comfy-Org/comfy-aimdo#62 - Dev/double sync [merged]
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
@person4268 commented on GitHub (Jun 24, 2026):
I have samples now. All were done with a fixed seed of 1000.
Without patch, without `--disable-dynamic-vram`
Without patch, with `--disable-dynamic-vram`
With patch, without `--disable-dynamic-vram`
@rattus128 commented on GitHub (Jun 29, 2026):
vbar_fault calling syncrhonize unconditionally is a total performance killer. vbars_free(budget_deficit(0)) will synchronize conditionally if it has something to do, so your bots conclusion looks inaccurate. Weights being stale or racing would be absolutely catastrophic to outputs so im not sure of the theory. Is there a lora involved (common for non-determinimism) ?
@person4268 commented on GitHub (Jun 29, 2026):
The images I posted should have workflows attached, and shouldn't have loras, quantization, sageattn, or anything like that involved. I tried to keep it as minimal as I could. No launch args other than
--preview-size.And yeah, I kinda did figure it was likely wrong, hence why I tried to downweight the theory.
But I mean, it does occasionally seem to mess up pretty badly, like in the 5th image. The pattern I was seeing in the preview was generation would be going fine, then there'd be one incredibly bad step ruining the image, and all subsequent steps weren't enough to fix it. If you're lucky and it happened early, you'd just get weird/bad composition.
@person4268 commented on GitHub (Sep 9, 2026):
Don't appear to be experiencing this anymore for whatever reason, whether that be recent changes or driver updates.