Got an AMD Radeon card and want Ollama to use it instead of crawling along on the CPU? It works well in 2026, but AMD support has more moving parts than NVIDIA: ROCm versions, supported chip lists, Vulkan as a fallback, and Linux permissions. Miss one and Ollama quietly falls back to the CPU.
This guide covers exactly what Ollama needs to run on an AMD GPU on Windows and Linux. It explains which cards are supported, when Vulkan kicks in, how to force older or unlisted cards with HSA_OVERRIDE_GFX_VERSION, how Docker fits in, and how to fix the usual “AMD GPU not detected” problems.
- Driver: Ollama needs an AMD ROCm 7 driver on Linux, and a ROCm 7 / HIP 7 capable driver on Windows.
- Not on the ROCm list? Ollama can use Vulkan instead. It is on by default on Windows and Linux when the backend is installed.
- Older card on Linux: try
HSA_OVERRIDE_GFX_VERSION, for example10.3.0for RDNA2 cards. - Linux permissions: the ollama user needs the
render(and oftenvideo) group. - Docker:
ollama/ollama:rocmwith--device /dev/kfd --device /dev/dri. - Check:
ollama psshould say100% GPU.
New to Ollama? My Ollama guide covers install, models, commands and fixes in one place.
How Ollama Uses AMD GPUs: ROCm and Vulkan
Ollama has two ways to run on an AMD graphics card:
- ROCm (HIP): AMD’s own compute stack. This is the main path and usually the fastest. It only supports specific chips, and Ollama currently bundles ROCm 7 libraries, so your driver must match.
- Vulkan: a general graphics and compute API that almost every modern GPU supports. Ollama’s docs describe it as additional GPU support on Windows and Linux. It covers AMD cards that ROCm doesn’t, and Intel GPUs too.
You don’t pick between them by hand. Ollama detects what works at start-up and logs the result. If your card isn’t on the ROCm list, Vulkan is the reason it can still run on the GPU.
Which AMD Cards Work
Ollama’s hardware page lists the LLVM targets (“gfx” numbers) that ROCm supports, with example cards. Here is the part home users care about:
| LLVM target | Example GPU from Ollama’s docs | Family |
|---|---|---|
| gfx1200 / gfx1201 | Radeon RX 9070 / RX 9070 XT | RDNA4 (RX 9000) |
| gfx1100 / gfx1101 / gfx1102 | Radeon PRO W7900 / W7700 / RX 7600 | RDNA3 (RX 7000) |
| gfx1150 / gfx1151 | Ryzen AI 9 HX 375 / Ryzen AI Max+ 395 | Ryzen AI APUs |
| gfx1030 | Radeon PRO V620 | RDNA2 (same target as RX 6800/6900) |
| gfx908 / gfx90a / gfx942 / gfx950 | Instinct MI100 / MI210-MI250 / MI300 / MI350X | Data center |
Cards in the same family usually share a target. For example, RX 7900 XTX and RX 7900 XT are gfx1100, like the W7900. If your exact card isn’t named, look up its gfx number (Linux: rocminfo | grep gfx) and compare.
Older cards such as the RX 6600/6700 (gfx1032/gfx1031) and RX 5000 series aren’t on the list. On Linux you can often make them work with an override, below. On any OS, Vulkan is the other route.
If you are choosing a card for local AI, see my AMD GPU for AI guide and best GPU for local LLMs.
Windows Setup
- Update the AMD driver (Adrenalin) to a current version. Ollama’s docs say it needs a ROCm 7 / HIP 7 capable driver stack on Windows; recent Adrenalin releases provide this.
- Install or update Ollama from ollama.com. The Windows installer includes the AMD and Vulkan backends. See how to update Ollama.
- Restart Ollama (quit from the tray, then start it again) so it detects the GPU fresh.
- Run a model and check
ollama ps(see Check That It Works).
On Windows, most GPU drivers already include Vulkan, so cards outside the ROCm list can still use the GPU with no extra steps.
One Windows-specific note from Ollama’s FAQ: with Radeon GPUs on Windows, Ollama has defaulted to loading only one model at a time because of how ROCm reports free VRAM. You can raise OLLAMA_MAX_LOADED_MODELS, but only if the models really fit. See Ollama parallel requests.
Linux Setup
- Install the ROCm 7 driver with AMD’s
amdgpu-installtool, following AMD’s ROCm install docs for your distro. Reboot afterwards. - Install Ollama with the official script:
curl -fsSL https://ollama.com/install.sh | sh - Give the ollama user GPU access. Ollama’s troubleshooting docs say AMD access usually needs
videoand/orrendergroup membership for/dev/kfd:sudo usermod -aG render,video ollama sudo systemctl restart ollama - Check the log with
journalctl -u ollama --no-pager | grep -i -E "amd|rocm|vulkan|inference compute".
The most common Linux problem in late 2026 is an old driver. Because Ollama ships ROCm 7 libraries, a ROCm 6.x kernel driver makes GPU discovery hang and time out, and Ollama falls back to the CPU. The fix is in Troubleshooting.
Unsupported Card? HSA_OVERRIDE_GFX_VERSION
On Linux, ROCm can be told to treat your GPU as a close, supported target. Ollama’s docs give the example of the RX 5400. It is gfx1034, which ROCm doesn’t support, but the closest supported target is gfx1030. So you set:
HSA_OVERRIDE_GFX_VERSION="10.3.0"
The value uses x.y.z form: gfx1030 becomes 10.3.0, and gfx1100 becomes 11.0.0. The most common case:
| Your card (gfx) | Try |
|---|---|
| RX 6600 / 6650 XT (gfx1032), RX 6700 XT (gfx1031), other RDNA2 | 10.3.0 |
Set it on the server, then restart:
sudo systemctl edit ollama.service
[Service]
Environment="HSA_OVERRIDE_GFX_VERSION=10.3.0"
sudo systemctl daemon-reload
sudo systemctl restart ollama
With two AMD GPUs of different generations, set one per device by adding the device number: HSA_OVERRIDE_GFX_VERSION_0=10.3.0 and HSA_OVERRIDE_GFX_VERSION_1=11.0.0.
An override is an experiment, not a guarantee. If the model crashes or produces garbage, remove it and use Vulkan instead.
Using Vulkan (AMD and Intel)
Ollama’s docs say Vulkan is enabled by default when the backend is installed, on both Windows and Linux.
- Windows: most vendor drivers include Vulkan. Nothing extra is needed.
- Linux: you usually need Vulkan driver packages. You can choose between Mesa (RADV for AMD) and vendor packages. AMD’s
amdgpu-installcan set a Vulkan implementation, and Intel documents its own driver steps. - Linux, AMD: on some distros, add the ollama user to the
rendergroup (same command as above). - VRAM reporting on Linux: to read exact free VRAM through Vulkan, Ollama needs root or an extra capability. Without it, Ollama schedules from approximate model sizes. Ollama’s docs give this command:
sudo setcap cap_perfmon+ep /usr/local/bin/ollama
Vulkan is also how Intel Arc GPUs run Ollama. More in my Intel Arc for local AI guide.
Docker With an AMD GPU
Ollama’s Docker docs give two options:
# ROCm image (supported AMD cards)
docker run -d --device /dev/kfd --device /dev/dri -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama:rocm
# standard image, Vulkan (bundled, on by default)
docker run -d --device /dev/kfd --device /dev/dri -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
If the container can’t see the GPU, find the numeric group IDs on the host with ls -lnd /dev/kfd /dev/dri /dev/dri/* and pass them with --group-add. On SELinux systems, Ollama’s docs suggest sudo setsebool container_use_devices=1. The full Docker guide is in Ollama in Docker.
Check That It Works
ollama run llama3.1 "hello"
ollama ps
The PROCESSOR column should show 100% GPU. If it says 100% CPU, the GPU wasn’t used. A split like 30%/70% CPU/GPU means the model plus context didn’t fit in VRAM.
Then check the server log for the inference compute line. It names the GPU, the library in use (ROCm or Vulkan) and the VRAM found. To check speed, run ollama run llama3.1 --verbose and read the eval rate. My Ollama slow fix guide explains the numbers, and Ollama logs shows where the log lives.
Watch GPU load while a model runs: rocm-smi or amd-smi on Linux, or Task Manager’s GPU tab on Windows.
Pick GPUs or Turn Vulkan Off
| Goal | Setting |
|---|---|
| Use only some AMD GPUs (ROCm) | ROCR_VISIBLE_DEVICES=0 (IDs or UUIDs from rocminfo) |
| Pick Vulkan GPUs | GGML_VK_VISIBLE_DEVICES=0,1 |
| Disable Vulkan | OLLAMA_VULKAN=0 or GGML_VK_VISIBLE_DEVICES=-1 |
| Force CPU only | ROCR_VISIBLE_DEVICES=-1 plus OLLAMA_VULKAN=0 |
| Integrated Radeon graphics | OLLAMA_IGPU_ENABLE controls whether iGPUs may be used |
Disabling Vulkan is handy when a laptop’s integrated graphics gets picked, or when Vulkan causes errors and you want ROCm only. With two or more cards, see my Ollama multi-GPU guide.
Troubleshooting
“failure during GPU discovery … failed to finish discovery before timeout”
Ollama’s troubleshooting page says this usually means your AMD driver is too old. Ollama bundles ROCm 7 libraries on Linux, which need a ROCm 7 kernel driver; with ROCm 6.x or older, discovery hangs and Ollama falls back to the CPU. Upgrade with amdgpu-install, reboot, and restart Ollama.
Permission errors for /dev/kfd
Add the ollama user to render and video, then restart the service. Ollama reports permission problems in the server log.
GPU found but Ollama still uses the CPU
Usually the model and context are too big for your VRAM. Use a smaller quantization or model, or lower num_ctx. See Ollama context length and Ollama not using GPU.
Get more detail
Ollama’s docs suggest OLLAMA_DEBUG=1 for more GPU discovery output, AMD_LOG_LEVEL=3 for HIP/ROCm messages, and checking sudo dmesg | grep -i amdgpu and sudo dmesg | grep -i kfd for driver errors.
Integrated graphics used instead of the Radeon card
Turn off iGPU use with OLLAMA_IGPU_ENABLE=0, or limit Vulkan devices with GGML_VK_VISIBLE_DEVICES.
FAQ
Is AMD slower than NVIDIA in Ollama?
For the same VRAM and memory bandwidth, current Radeon cards run local LLMs well. VRAM size matters more than the brand: a 16 GB AMD card fits models an 8 GB NVIDIA card can’t.
ROCm or Vulkan, which is faster?
It depends on the card and model. ROCm is the main, tuned path for supported cards. Vulkan opens up cards that ROCm doesn’t support. If you’re curious, compare eval rates with --verbose, using OLLAMA_VULKAN=0 to force ROCm.
Do I need to install the ROCm SDK on Windows?
No. Ollama ships the libraries it needs. You need a current AMD driver.
Does this work on Ryzen AI laptops?
Ollama’s list includes the Ryzen AI 9 HX 375 (gfx1150) and Ryzen AI Max+ 395 (gfx1151). On these APUs the GPU shares system memory, so how much you can run depends on your RAM and how much is assigned to graphics.
Can I mix an AMD and an NVIDIA GPU?
Don’t count on one model spanning both. Pick one with the visibility variables, or run two Ollama servers on different ports, as shown in the multi-GPU guide.
Sources
- Ollama docs: Hardware support (ROCm 7 requirement on Linux and Windows, supported LLVM targets, HSA_OVERRIDE_GFX_VERSION, ROCR_VISIBLE_DEVICES, Vulkan support, cap_perfmon, GGML_VK_VISIBLE_DEVICES)
- Ollama docs: Troubleshooting (render/video groups, container group IDs, AMD_LOG_LEVEL, driver version mismatch)
- Ollama docs: Docker (rocm image, Vulkan in the standard image)
- Ollama docs: FAQ (Radeon on Windows loaded-model default)




