Some CUDA devices not shown either on comfy launch or on the front end>settings
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
### Custom Node Testing
- [ ] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)
### Expected Behavior
I Have 2 devices which your cuda_malloc.py sees, paraphrasing the code
```python
>>> import subprocess
>>> out = subprocess.check_output(['nvidia-smi', '-L'])
>>> names={l.decode('utf-8').split(' (UUID')[0] for l in out.split(b'\n') if len (l) >0}; print(names)
{'GPU 1: NVIDIA RTX A6000', 'GPU 0: NVIDIA TITAN RTX'}
```
I would expect to be able to use either of them. But only the TITAN is seen by ComfyUI.
### Actual Behavior
on
```bash
$ comfy launch
Launching ComfyUI from: /home/me/myself/i/ComfyUI
Checkpoint files will always be loaded safely.
Total VRAM 24022 MB, total RAM 128756 MB
pytorch version: 2.8.0+cu128
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA TITAN RTX : cudaMallocAsync
Using pytorch attention
Python version: 3.12.11 | packaged by conda-forge | (main, Jun 4 2025, 14:45:31) [GCC 13.3.0]
ComfyUI version: 0.3.64
ComfyUI frontend version: 1.27.10
```
Notice, only my smaller device is recognized, but with many models 48GB barely suffices to test.
### Steps to Reproduce
Have 2 unequal devices on a local machine and call
`comfy launch`
### Debug Logs
```powershell
pasted above
```
### Other
For myself I solved this issue by adding into
`$CONDA_PREFIX/etc/conda/activate.d/env_vars.sh`
``` bash
export ORIGINAL_CUDA_VISIBLE_DEVICES=$CUDA_VISIBLE_DEVICES
export CUDA_VISIBLE_DEVICES=1
```
`$CONDA_PREFIX/etc/conda/deactivate.d/env_vars.sh`
``` bash
export CUDA_VISIBLE_DEVICES=$ORIGINAL_CUDA_VISIBLE_DEVICES
unset ORIGINAL_CUDA_VISIBLE_DEVICES
```
But considering that the number and types of devices will multiply like rabbits in the near future, It;d be nice for comfyui to allow users manager resources -- perhaps with the control one gets out of Docker...
Contributor guide
Assessment
This issue has not been assessed yet.