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

Error / Graphics card and drivers

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

  1. Find out your card’s gfx target. Under Linux/WSL: rocminfo | grep -E "Marketing Name|gfx|Agent".
  2. 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.
  3. Test after installation on Windows: python -c "import torch; print(torch.cuda.is_available())" and python -c "import torch; print(torch.cuda.get_device_name(0))".
  4. 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).
  5. 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 triton and then pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/rocm7.0.
  6. 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:

Terms for this

Similar errors

Sources

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