Fix Ollama “dropping integrated GPU”: Enable Intel iGPU on Windows (100% CPU to GPU)

⚡ Quick Solution at a Glance

The Bottleneck: Ollama drops integrated graphics (Intel HD/Iris Xe, AMD APUs) by default on Windows to prevent memory crashes, routing all model inference to 100% CPU.

The Command: Run [Environment]::SetEnvironmentVariable("OLLAMA_IGPU_ENABLE", "1", "User") and $env:OLLAMA_IGPU_ENABLE = "1" in PowerShell.

The Critical Trap: Setting environment variables does not update running daemons. You must kill active Ollama processes with Stop-Process -Name ollama -Force and restart ollama serve so the runtime recognizes the flag.

Why Ollama Disables Integrated GPUs by Default

Logged Console Warning

msg="dropping integrated GPU; to enable, set OLLAMA_IGPU_ENABLE=1"

When running local models via Ollama on Windows laptops equipped with integrated graphics (such as Intel HD Graphics, Intel Iris Xe, or AMD Radeon APUs), Ollama bypasses your graphics processor by default and routes all inference through the CPU.

If you inspect your local Ollama server log (ollama_stderr.log or terminal output), you will see the runtime engine detect your graphics hardware and immediately drop it:

[INFO] runner.go:405: dropping integrated GPU; to enable, set OLLAMA_IGPU_ENABLE=1
       id=0 library=Vulkan name=Vulkan0 description="Intel(R) HD Graphics 620"
[INFO] types.go:50:   inference compute id=cpu library=cpu total="7.9 GiB" available="1.5 GiB"
[INFO] routes.go:2596: vram-based default context total_vram="0 B" default_num_ctx=4096

Because Ollama assigns total_vram="0 B", running ollama ps while prompting a model reports 100% CPU:

Ollama ps showing 100% CPU Bottleneck on Windows Intel HD Graphics
Empirical baseline: Ollama running on pure CPU (100% CPU) before setting OLLAMA_IGPU_ENABLE=1 on Windows 11.

This empirical teardown walks through the exact steps to activate Vulkan GPU acceleration on Windows integrated graphics, the silent environment reload trap that trips up most developers, and the memory stabilization updates in Ollama v0.40.17.

The Architecture: Why Ollama Defaults to CPU on iGPUs

Running local language models offline offers complete privacy and zero API costs compared to cloud endpoints—which we track comprehensively in our AI Free Tier & Token Limits Tracker. However, on budget hardware without dedicated NVIDIA CUDA graphics, Ollama relies on the llama.cpp execution engine using Unified Memory Architecture (UMA) to share host system RAM with your integrated GPU.

1. The Pinned Memory Allocation Barrier

In older builds, initializing a Vulkan GPU runner on shared host memory frequently crashed with memory allocation errors:

  • Vulkan: failed to allocate memory for KV cache
  • llama runner process has terminated: exit status 2

Because Windows manages shared video memory dynamically, Ollama’s older memory allocator attempted to reserve fixed blocks of pinned host memory. If background Windows applications saturated available RAM, the allocation failed and crashed the Ollama daemon. To prevent service crashes, Ollama maintainers added a guard in runner.go: if a device is detected as type == "iGPU", drop the GPU and fall back to CPU compute unless explicitly commanded otherwise.

2. The Ollama v0.40.17 Engine Stabilization

The release of Ollama v0.40.17 significantly stabilized this architecture:

  • Vulkan Memory Mappings (mmap): Vulkan now utilizes memory-mapped files (mmap) for integrated GPUs, eliminating pinned memory reservation crashes on shared-memory laptops.
  • KV Cache Dynamic Sizing: Partially offloaded models on Windows iGPUs now dynamically scale their key-value (KV) cache rather than crashing during multi-turn chats.

Step-by-Step Fix: Activating Vulkan iGPU in PowerShell

We tested this benchmark on an 8GB Windows 11 laptop running an Intel HD Graphics 620 iGPU with qwen2.5:0.5b (Q4_K_M, 483 MB footprint).

Step 1: Set the Persistent User Environment Flag

Open Windows PowerShell and execute both commands to apply the flag permanently to your Windows user profile and your current terminal session:

[Environment]::SetEnvironmentVariable("OLLAMA_IGPU_ENABLE", "1", "User")
$env:OLLAMA_IGPU_ENABLE = "1"
Setting OLLAMA_IGPU_ENABLE in PowerShell
Applying OLLAMA_IGPU_ENABLE=1 persistently via .NET SetEnvironmentVariable and local session variable in PowerShell.

The Critical Trap: Why Ollama Still Shows 100% CPU After Setting the Flag

⚠️ The Silent Daemon Trap

Setting environment variables in PowerShell does not update background processes that are already running. If Ollama was already running in the background or Windows system tray, subsequent prompts route directly to the old daemon, which remains stuck on 100% CPU.

You must terminate the active Ollama background daemon and restart it so the server re-initializes its GPU discovery hooks:

# 1. Terminate any running Ollama background processes
Stop-Process -Name "ollama" -Force -ErrorAction SilentlyContinue

# 2. Restart the Ollama server in your active terminal
ollama serve

When Ollama initializes with OLLAMA_IGPU_ENABLE=1 active, notice the transformation in the startup logs:

[INFO] runner.go:60:   discovering available GPUs...
[INFO] types.go:32:    inference compute id=0 library=Vulkan name=Vulkan0 description="Intel(R) HD Graphics 620" type=iGPU total="3.9 GiB" available="3.5 GiB"
[INFO] routes.go:2596: vram-based default context total_vram="3.9 GiB" default_num_ctx=4096

Instead of total_vram="0 B", Ollama unlocks 3.9 GiB of shared Vulkan GPU memory and binds the model weights directly to your Intel graphics processor.

Empirical Benchmark: 100% CPU vs 100% GPU on an 8GB Laptop

With the server running under the active iGPU configuration, execute a test inference prompt in PowerShell to inspect the hardware allocation:

ollama run qwen2.5:0.5b "Hello"
ollama ps
Ollama ps confirming 100% GPU Hardware Acceleration on Intel HD Graphics
Verified empirical success: Ollama ps confirming 100% GPU offload on Intel HD Graphics 620 via Vulkan shared aperture memory.

Empirical Hardware Benchmark Results

MetricDefault Ollama ConfigPatched (OLLAMA_IGPU_ENABLE=1)Empirical Delta
Active Processor100% CPU100% GPU (Vulkan)Hardware Offload Enabled
Detected VRAM0 B3.9 GiB (Shared Aperture)+3.9 GiB GPU Memory Unlocked
Model Testedqwen2.5:0.5b (483 MB)qwen2.5:0.5b (483 MB)Identical model weights
Context Window4096 tokens4096 tokensFull context window maintained
System Thermal ImpactHigh CPU thread saturationZero CPU compute throttlingReduced fan noise & lower latency

Frequently Asked Questions

Does enabling OLLAMA_IGPU_ENABLE work on Intel Iris Xe and AMD Radeon?

Yes. Any integrated GPU with modern Vulkan drivers (Vulkan 1.2 or higher) is supported. This includes Intel Iris Xe, Intel UHD Graphics, and AMD Radeon 680M / 780M / 890M processors.

What should I do if ollama ps still shows 100% CPU after restarting?

1. Open Windows Task Manager (Ctrl + Shift + Esc).
2. Search for any running instances of ollama.exe or Ollama App under Background Processes.
3. End all instances, open a fresh PowerShell window, execute $env:OLLAMA_IGPU_ENABLE="1", and run ollama serve.

Can I run larger 7B or 8B models on an 8GB laptop using iGPU?

On laptops with 8GB of total system RAM, running models larger than 3B parameters (such as llama3.1:8b or qwen2.5:7b) will exceed available physical memory because the iGPU shares host RAM. For 8GB laptops, stick to optimized small language models:

  • qwen2.5:0.5b (483 MB footprint)
  • qwen2.5-coder:1.5b (~1.1 GB footprint)
  • llama3.2:1b (~1.3 GB footprint)

If your goal is building full-stack web applications or running an offline development assistant without burning cloud credits, check out our tested guide on how to run Bolt.diy with Ollama on Windows (Tested on 8GB RAM). Combining Vulkan iGPU hardware acceleration with lightweight coder models like qwen2.5-coder:1.5b delivers responsive code generation without choking your CPU cores.

Alternatively, if your laptop runs out of memory on complex coding tasks, you can pair your local workflow with free cloud model tiers—see our step-by-step walkthrough on how to use Google Gemini in Cline for free with automated rate-limit fallbacks.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top