Free | No tracking | Every fact with a source|German and English

Error / Graphics card and drivers

CUDAExecutionProvider is not in available provider names (onnxruntime runs only on the CPU)

onnxruntime does not find a graphics card and runs on the processor because the CPU version is installed or CUDA libraries are missing.

The message

UserWarning: Specified provider 'CUDAExecutionProvider' is not in available provider names.Available providers: 'AzureExecutionProvider, CPUExecutionProvider'

Affects: ComfyUI, rembg, Python

Why is this happening?

onnxruntime is available as a CPU package onnxruntime and as a GPU package onnxruntime-gpu. Only one of them may be installed at a time. If both are present, CUDA is missing from the list and onnxruntime falls back to the CPU. In addition, onnxruntime-gpu needs the matching CUDA (12.x or 13) and cuDNN 9 version that it can use together with PyTorch.

How to fix it

  1. Check what onnxruntime sees. Portable: open a terminal in the ComfyUI_windows_portable folder and run .\python_embeded\python.exe -c "import onnxruntime as ort; print(ort.get_available_providers())". If CUDAExecutionProvider is missing, everything is running on the CPU.
  2. Check which packages are installed: .\python_embeded\python.exe -m pip list and look for onnxruntime and onnxruntime-gpu.
  3. Remove both and install only the GPU version: .\python_embeded\python.exe -m pip uninstall -y onnxruntime onnxruntime-gpu and then .\python_embeded\python.exe -m pip install onnxruntime-gpu. In a venv, use the same commands with pip after activation.
  4. If CUDA is still missing, install the CUDA and cuDNN libraries through pip as well: pip install onnxruntime-gpu[cuda,cudnn]. In your own scripts, run import torch before starting or call onnxruntime.preload_dlls() so the libraries are loaded.
  5. For rembg: pip install "rembg[gpu]" (with command line "rembg[gpu,cli]"). If the GPU version does not work, use "rembg[cpu]".
  6. For ReActor in ComfyUI: run install.bat in the ComfyUI\custom_nodes\ComfyUI-ReActor folder; it sets up the GPU version of onnxruntime for ComfyUI's Python.

Better not: Never install onnxruntime and onnxruntime-gpu in the same environment at the same time.

Set up from scratch again

If it still doesn’t work after that, a fresh setup step by step often helps:

Terms for this

Similar errors

Sources

Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.