[PR #1785] [MERGED] Load dynamic cpu lib on windows #10673

Closed
opened 2026-04-12 23:07:05 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1785
Author: @dhiltgen
Created: 1/4/2024
Status: Merged
Merged: 1/4/2024
Merged by: @dhiltgen

Base: mainHead: win_native_cli


📝 Commits (1)

  • e9ce91e Load dynamic cpu lib on windows

📊 Changes

4 files changed (+16 additions, -8 deletions)

View changed files

📝 llm/ext_server_windows.go (+1 -4)
📝 llm/llama.cpp/gen_windows.ps1 (+3 -0)
📝 llm/llm.go (+2 -1)
📝 llm/shim_ext_server_windows.go (+10 -3)

📄 Description

On linux, we link the CPU library in to the Go app and fall back to it when no GPU match is found. On windows we do not link in the CPU library so that we can better control our dependencies for the CLI. This fixes the logic so we correctly fallback to the dynamic CPU library on windows.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/1785 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 1/4/2024 **Status:** ✅ Merged **Merged:** 1/4/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `win_native_cli` --- ### 📝 Commits (1) - [`e9ce91e`](https://github.com/ollama/ollama/commit/e9ce91e9a609968e066859900e06e663b929d197) Load dynamic cpu lib on windows ### 📊 Changes **4 files changed** (+16 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `llm/ext_server_windows.go` (+1 -4) 📝 `llm/llama.cpp/gen_windows.ps1` (+3 -0) 📝 `llm/llm.go` (+2 -1) 📝 `llm/shim_ext_server_windows.go` (+10 -3) </details> ### 📄 Description On linux, we link the CPU library in to the Go app and fall back to it when no GPU match is found. On windows we do not link in the CPU library so that we can better control our dependencies for the CLI. This fixes the logic so we correctly fallback to the dynamic CPU library on windows. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:07:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#10673