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

Error / Graphics card and drivers

no kernel image is available (graphics card does not match the PyTorch version)

The installed PyTorch version does not contain code for your graphics card’s architecture, either because the card is too new or too old for it.

The message

torch.AcceleratorError: CUDA error: no kernel image is available for execution on the device … NVIDIA GeForce RTX 5090 with CUDA capability sm_120 is not compatible with the current PyTorch installation.

Affects: ComfyUI

Why is this happening?

Each PyTorch version is built only for certain GPU generations. RTX-50 cards (Blackwell, sm_120) need a PyTorch version with CUDA 12.8 or newer. Conversely, the CUDA 12.8 and CUDA 13 versions from PyTorch 2.8 onward no longer support GTX-900 and GTX-10 cards (Maxwell, Pascal). So if you use an old package with a new card or a new package with an old card, you’ll get this error.

How to fix it

  1. Find out which card you have: nvidia-smi in the command prompt shows the name.
  2. RTX 50 (e.g. 5060 to 5090): Download the current Portable package or the current desktop app through the ComfyUI download page. Both now use CUDA 13.0. Manually: pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu130 in the activated venv.
  3. RTX 20, 30, and 40: The normal current package (CUDA 13.0) works. For old installations, updating PyTorch as above helps.
  4. GTX 10 and older: Use the Portable package with the add-on "cu126" (Python 3.12), which is explicitly intended for these cards. Manually: install PyTorch from https://download.pytorch.org/whl/cu126.
  5. Note for GTX-10 cards: According to PyTorch, 2.14 is the last version with ready-made CUDA 12.6 packages. Starting with 2.15, there are no more ready-made packages for these cards. In that case, stay on an older PyTorch version; for the Portable version, for example, run .\python_embeded\python.exe -m pip install torch==2.14.0 torchvision==0.29.0 --index-url https://download.pytorch.org/whl/cu126 (run this in the ComfyUI_windows_portable folder).
  6. After switching, check: python -c "import torch; print(torch.__version__, torch.cuda.get_device_name(0))" (for Portable use .\python_embeded\python.exe).

Better not: Don’t just copy an old ComfyUI installation to a PC with a new graphics card. The bundled PyTorch version often doesn’t match the card.

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 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.