Ollama Not Using GPU on Windows: Complete Fix
When you run an LLM in Ollama and token output creeps along at 2–5 tokens per second with CPU fans screaming at 100%, Ollama has fallen back to pure CPU execution. Here is how to diagnose why Ollama is ignoring your discrete graphics card and force proper GPU offload on Windows.
ollama ps
Look under the PROCESSOR column. If it says 100% CPU or shows only a small percentage on GPU, read through the targeted solutions below.
Root Causes Matrix
| Observed Symptom | Underlying Root Cause | Primary Fix |
|---|---|---|
PROCESSOR: 100% CPU on NVIDIA |
NVIDIA Display Driver is outdated (< 535) or CUDA 12 DLLs failed to bind. | Clean driver reinstall (Game Ready 550+) + System reboot. |
PROCESSOR: 100% CPU on Laptop |
Windows graphics scheduling routed Ollama to Integrated Intel/AMD GPU instead of dGPU. | Windows Settings → System → Display → Graphics → High Performance. |
PROCESSOR: 100% CPU on AMD Radeon |
Unsupported RDNA architecture or missing ROCm 6.x Windows runtime components. | Verify RDNA 2/3 compatibility and set HSA_OVERRIDE_GFX_VERSION. |
CUDA error: out of memory |
Model size + KV cache exceeds dedicated VRAM headroom. | Reduce context window or switch to smaller parameter size (e.g., 8B Q4_K_M). |
| Ollama crashes immediately on model load | Third-party overlay or driver conflict with ollama_llama_server.exe. |
Check Windows Event Viewer and inspect server.log. |
Step 1: Check Windows Driver Recognition
Before suspecting Ollama, verify that the Windows operating system and graphics subsystem can communicate directly with your GPU driver without fault codes (such as Device Manager Error Code 43).
Run the following read-only PowerShell command to inspect your video adapter:
Get-CimInstance Win32_VideoController | Select-Object Name, DriverVersion, Status, PNPDeviceID
Healthy Output: The Status column should read OK. If it reads Error or Degraded, open Windows Device Manager (devmgmt.msc) and reinstall your display driver.
Step 2: NVIDIA Specific Checks (CUDA Verification)
Ollama uses dynamic library loading to link against nvcuda.dll and cuBLAS. For NVIDIA GPUs, check whether nvidia-smi is responsive in your terminal:
nvidia-smi --query-gpu=name,driver_version,memory.total,memory.free --format=csv
NVIDIA Compute Capability Requirement
Ollama's bundled CUDA runners require an NVIDIA GPU with a minimum Compute Capability of 5.0 (Maxwell architecture or newer). Older cards like the GTX 750 (non-Ti), GTX 660, or Fermi-based GPUs lack the instruction sets required by modern llama.cpp matrix multiplication kernels and will be automatically skipped in favor of the CPU.
Step 3: Laptop Dual-GPU Routing (The #1 Windows Trap)
On gaming and creator laptops (such as ASUS ROG, Lenovo Legion, Dell XPS, or HP OMEN), Windows features two GPUs: an energy-efficient integrated GPU (Intel Iris Xe or AMD Radeon 680M/780M) and a power-hungry discrete NVIDIA GPU (RTX 4060/4070 Laptop). By default, Windows often assigns background console processes like Ollama to the weak integrated GPU, which immediately fails memory allocation and reverts to CPU.
How to force Windows to assign Ollama to your discrete NVIDIA GPU:
- Open Windows Settings (press Win + I).
- Navigate to System > Display > Graphics (or "Graphics settings").
- Under "Custom options for apps", click Browse.
- Navigate to your Ollama installation directory:
%LOCALAPPDATA%\Programs\Ollama\ - Select ollama.exe and click Add.
- Next, navigate into the subfolder
%LOCALAPPDATA%\Programs\Ollama\lib\ollama\(orrunners\depending on version) and also add ollama_llama_server.exe. - Click on each added application, select Options, and choose High performance (NVIDIA GPU).
- Click Save, then completely quit Ollama from the Windows System Tray and relaunch it.
Step 4: AMD Radeon Troubleshooting (ROCm on Windows)
Ollama includes native Windows support for select AMD Radeon graphics cards via ROCm. However, official ROCm support on Windows is primarily targeted at RDNA 3 (Radeon RX 7000 series: RX 7900 XTX, 7900 XT, 7800 XT, 7700 XT, 7600) and select RDNA 2 cards (RX 6800, 6800 XT, 6900 XT).
If you have an RDNA 2 or RDNA 3 card that Ollama fails to detect, you can explicitly set the HSA graphics override variable before starting Ollama:
# For RX 6700 XT / RX 6750 XT (gfx1031 targeting gfx1030):
[Environment]::SetEnvironmentVariable('HSA_OVERRIDE_GFX_VERSION', '10.3.0', 'User')
# For RX 7600 / RX 7600 XT (gfx1102 targeting gfx1100):
[Environment]::SetEnvironmentVariable('HSA_OVERRIDE_GFX_VERSION', '11.0.0', 'User')
Step 5: Intel Arc & OneAPI Acceleration
For Intel Arc A-Series GPUs (Arc A770 16GB, A750 8GB, A580, A380) and Intel Core Ultra processors (Meteor Lake / Lunar Lake iGPUs), Ollama uses the SYCL / OneAPI runner engine.
- Ensure you have the latest Intel Arc & Iris Xe Graphics Driver installed (version 31.0.101.5500+).
- Verify that your motherboard has Resizable BAR (ReBAR) enabled in BIOS. Intel Arc cards experience severe performance degradation or crash during tensor loading if ReBAR is disabled.
Step 6: Inspect Ollama's Server Log for Silent Errors
When Ollama decides to skip your GPU, it writes the exact reason into its diagnostic log file. You can read the live initialization stream without opening file explorer:
Get-Content "$env:LOCALAPPDATA\Ollama\server.log" -Tail 60
Search for log entries containing gpu, cuda, or runner:
discovering dynamic libraries...: Shows all detected runner DLLs (cuda_v11, cuda_v12, rocm, cpu).total VRAM: ... available: ...: Verifies that Ollama accurately counted your free video memory.insufficient VRAM to load full model, offloading X/Y layers: Confirms partial offloading.no compatible GPU detected, using CPU runner: Confirms that driver detection failed.
Frequently Asked Questions
Can I run Ollama on an external GPU (eGPU) over Thunderbolt?
Yes. As long as Windows recognizes the eGPU in Device Manager and the vendor driver is installed, Ollama will detect it. However, PCIe transfer bandwidth over Thunderbolt 3/4 is limited to ~32 Gbps (PCIe 3.0 x4), which can cause high initial model loading times and slower prompt evaluation, though token generation speed remains fast once loaded.
Does Ollama support multiple GPUs simultaneously on Windows?
Yes. Ollama automatically pools VRAM across multiple GPUs of the same vendor (e.g., dual NVIDIA RTX 3090s). It splits model layers proportionally across the available memory. You can inspect multi-GPU allocation by running nvidia-smi during inference.
Why does Task Manager show 0% GPU usage during inference?
By default, Windows Task Manager graphs "3D Engine" utilization. AI matrix computations execute on the GPU's "Compute" or "CUDA" engines. Click on the drop-down header above the mini-graphs in Task Manager's GPU tab and change "3D" to "Compute_0" or "Cuda" to see real-time hardware utilization.