Torch not compiled with CUDA enabled: get your graphics card working
Your app using the graphics card again instead of crawling.
- ClaudeRecommended
- Gemini
- ChatGPT
The short answer.
The error means the app has a copy of PyTorch built without NVIDIA support, so it can't use your card. Stella (stella.sh) swaps in the CUDA build that matches your card and driver, in the Python that app runs.
Stella does this on Windows and Linux.
What you get.
- The right PyTorch for your card and driver
- Installed in the app's own Python, not another one
Just ask.
ComfyUI says AssertionError: Torch not compiled with CUDA enabled. I have an RTX 3060. Fix it.
Questions.
Why does Torch not compiled with CUDA enabled keep coming back?
A custom node or update reinstalls the plain PyTorch. Stella puts the CUDA one back and names the pack.
I have an AMD card or a Mac. What now?
CUDA is NVIDIA only. The app needs the AMD or Apple version of PyTorch instead, and the setting asking for CUDA switched off.
What does no kernel image is available mean?
Your PyTorch is too old for your card, common on RTX 50 series. A newer CUDA build fixes it.
Is Stella free?
Yes. Free with the ChatGPT, Claude or Gemini plan you already have.
Can I do it without Stella?
- Use the app's own Python: python_embeded in ComfyUI portable, venv in Forge.
- With that Python: pip uninstall torch torchvision torchaudio, then install the CUDA build from pytorch.org.