The message
ROCm error: invalid device function / PROCESSOR 100% CPU
Affects: Ollama, LM Studio, KoboldCpp, llama.cpp, AMD Software: Adrenalin Edition (with AI Bundle, ROCm/HIP SDK)
Why is this happening?
AMD cards can be accessed through ROCm or Vulkan. Under Windows, ROCm supports only certain newer cards (in Ollama, for example, RX 7600 to 7900 XTX) and requires a current driver. For older cards like the RX 6000 series or for systems with additional integrated Radeon graphics, Vulkan is often the more reliable option.
How to fix it
- Update the driver with AMD Software: Adrenalin Edition and restart the PC.
- Ollama: Check with
ollama pswhether the GPU is being used. Vulkan is enabled by default in current versions and, according to the docs, is the recommended approach for some RX 6000 cards. Make sureOLLAMA_VULKANis not set to0, and update Ollama if the version is old. - LM Studio: Open the runtimes with
Strg+Umschalt+Rand select „Vulkan llama.cpp“. If you get errors with the ROCm runtime (for example, „invalid device function“), Vulkan is the tried-and-true fallback. - KoboldCpp: In the start window, choose the Vulkan preset or start with
koboldcpp.exe --usevulkan --gpulayers 99. - If you also have integrated Radeon graphics in the CPU, the program may choose that instead of the graphics card. In Ollama, you can use the environment variable
GGML_VK_VISIBLE_DEVICESto set the correct Vulkan card (number according toserver.log). - Linux with ROCm: Your user must be in the
videoandrendergroups.HSA_OVERRIDE_GFX_VERSIONis only an option on Linux for cards that are not officially supported.
Better not: Do not download ROCm files or "patched" DLLs from unofficial sites to force support for an unsupported card: Use Vulkan instead.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- Your own ChatGPT with Ollama and Open WebUI
Run a language model locally on Windows - with the Ollama app, suitable models for 8 to 24 GB, context length, command line, and Open WebUI… - LM Studio: Your First Local Chat
Install LM Studio on Windows, load a suitable language model, and chat offline, even with your own documents. - Local AI with an AMD graphics card on Windows
Set up a Radeon card for local AI - with the AI Bundle from AMD Adrenalin, LM Studio, Ollama, ComfyUI, PyTorch with ROCm, and WSL2 as a fal…
Terms for this
Similar errors
- Very slow responses because the model does not fit in VRAM
- Confusing answers, endless loops, or tags like <|im_end|> (wrong chat template)
- GGUF: unknown model architecture (program too old for the model)
- llama.cpp: CUDA error: out of memory
- Model forgets the beginning or ignores long texts (context length too small)
Sources
- https://docs.ollama.com/gpu
- https://docs.ollama.com/windows
- https://docs.ollama.com/troubleshooting
- https://github.com/lmstudio-ai/lmstudio-bug-tracker/issues/1395
- https://www.lmstudio.ai/blog/lmstudio-v0.3.9
- https://raw.githubusercontent.com/LostRuins/koboldcpp/concedo/README.md
- https://github.com/LostRuins/koboldcpp/wiki
Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.