hipErrorNoBinaryForGpu: Unable to find code object for all current devices! (ROCm has no matching code for your AMD card)
PyTorch with ROCm or another ROCm program can’t find precompiled code for the architecture of your AMD graphics card (its gfx target) and quits.
The message
"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!"
Affects: ComfyUI, Python, WSL 2 (Windows Subsystem for Linux)
Why is this happening?
ROCm programs contain code only for certain gfx targets, for example gfx1030 (RDNA 2) or gfx1100 (RDNA 3). If your card isn’t on that list — for example because it isn’t officially supported or because the PyTorch package was built without it — there is no fallback to the CPU, just this error. A related form in PyTorch is “HIP error: invalid device function” with the note “Cannot find CO in the bundle” in the debug log.
How to fix it
- Find out your card’s gfx target. Under Linux/WSL:
rocminfo | grep -E "Marketing Name|gfx|Agent". - Compare it with AMD’s compatibility list (link below in the sources). Under Windows, AMD’s PyTorch supports only selected cards and certain Python and driver versions — which ones are listed in AMD’s installation guide.
- Test after installation on Windows:
python -c "import torch; print(torch.cuda.is_available())"andpython -c "import torch; print(torch.cuda.get_device_name(0))". - Under Linux/WSL, you can make ROCm think a similar, supported card is present, for example for an RDNA 2 card like gfx1034:
export HSA_OVERRIDE_GFX_VERSION=10.3.0. The value must have three parts (x.y.z). - If your card is only missing from the installed PyTorch package, a newer package often helps. In the case of an RX 7600 (gfx1102), this worked:
pip uninstall torch torchvision tritonand thenpip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/rocm7.0. - If none of that works, Vulkan (for example for language models) is often the more stable solution for unsupported cards.
Better not: Don’t set HSA_OVERRIDE_GFX_VERSION to a value from another generation (for example 11.0.0 for an RDNA 2 card) — the instruction sets are different, which leads to crashes.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- Set up and maintain ComfyUI on Windows
Desktop or Portable, where the models belong, sharing models with other programs, safely installing custom nodes, updates, startup options … - Your First Image with ComfyUI
Install Comfy Desktop, learn the interface, and create your first AI image with FLUX.2 [small] 4B or Z-Image Turbo. - Your First AI Video with LTX in ComfyUI
Use LTX-2.3 in ComfyUI to create short videos with sound from text or an image. Template, files, settings, and license.
Terms for this
Similar errors
- pip: error: externally-managed-environment (Linux/WSL)
- nvidia-smi: command not found in WSL (CUDA not available in WSL — the only correct driver is the Windows driver)
- CUDAExecutionProvider is not in available provider names (onnxruntime runs only on the CPU)
- RuntimeError: CUDA error: an illegal memory access was encountered – the graphics card accessed invalid memory
- No module named 'triton' on Windows (triton-windows missing)
Sources
- https://llmconfigurator.com/en/guides/troubleshooting/rocm-unsupported-gpu-hsa-override
- https://docs.ollama.com/gpu
- https://github.com/ROCm/pytorch/issues/2730
- https://rocm.docs.amd.com/projects/radeon-ryzen/en/latest/docs/install/installrad/windows/install-pytorch.html
Checked on Oct 28, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.