ComfyUI
ComfyUI copied to clipboard
Multi - graphics card index recognition error
trafficstars
Expected Behavior
My device has two graphics cards installed. During startup, I selected the graphics card with index 1, but in actuality, the graphics card with index 0 was used. After restarting the computer and launching again, it reverted to the correct index. This is an occasional bug.
Actual Behavior
This is an intermittent error. Sometimes it works correctly, and sometimes it doesn't.
Steps to Reproduce
You can attempt multiple tries on a multi-graphics card device, which may help reproduce the issue successfully.
Debug Logs
=========The following are the graphics card indices set during startup:=========
Set cuda device to: 1
Checkpoint files will always be loaded safely.
Total VRAM 22528 MB, total RAM 32619 MB
pytorch version: 2.7.0+cu128
xformers version: 0.0.30
Set vram state to: NORMAL_VRAM
Disabling smart memory management
Device: cuda:0 NVIDIA GeForce RTX 2080 Ti : cudaMallocAsync
=========The following are the identified graphics card indices=============
[Crystools INFO version: 1.22.1
[Crystools INFO Gen Intel(R) Core(TM) i7-13700KF - Arch: AMD64 - OS: Windows 10
[Crystools INFOvidia) initialized.
[Crystools INFO
[Crystools INFO GeForce RTX 2080 Ti
[Crystools INFO GeForce RTX 3060 Ti
Other
No response