[PR #3709] [MERGED] Adds support for customizing GPU build flags in llama.cpp #11258

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/3709
Author: @remy415
Created: 4/17/2024
Status: Merged
Merged: 4/23/2024
Merged by: @dhiltgen

Base: mainHead: custom-gpu-defs


📝 Commits (9)

📊 Changes

2 files changed (+25 additions, -2 deletions)

View changed files

📝 llm/generate/gen_linux.sh (+15 -1)
📝 llm/generate/gen_windows.ps1 (+10 -1)

📄 Description

Appends OLLAMA_CUSTOM_GPU_DEFS to CMAKE_DEFS. Will override any previously set build flags, allows for customizing GPU options when building from source.


🔄 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/3709 **Author:** [@remy415](https://github.com/remy415) **Created:** 4/17/2024 **Status:** ✅ Merged **Merged:** 4/23/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `custom-gpu-defs` --- ### 📝 Commits (9) - [`7c000ec`](https://github.com/ollama/ollama/commit/7c000ec3ed747b603bb4fe7a41fc5718acff1222) adds support for OLLAMA_CUSTOM_GPU_DEFS to customize GPU build flags - [`1b42b4b`](https://github.com/ollama/ollama/commit/1b42b4b59a7c89869f9ce5247af7e48faa723aaf) Merge branch 'ollama:main' into custom-gpu-defs - [`52f5370`](https://github.com/ollama/ollama/commit/52f5370c484135489e994de5aee5c56cc74def37) add support for custom gpu build flags for llama.cpp - [`d524e5e`](https://github.com/ollama/ollama/commit/d524e5ef5e76961befe27a680c93ff2ec74eecb6) Merge branch 'custom-gpu-defs' of https://github.com/remy415/ollama into custom-gpu-defs - [`3934c15`](https://github.com/ollama/ollama/commit/3934c15895b1982a69b3a10bfea760afdde367dd) Merge branch 'ollama:main' into custom-gpu-defs - [`440b719`](https://github.com/ollama/ollama/commit/440b7190ed2e704290f99c1d8124a9bccd1bcc05) Update gen_linux.sh - [`1501641`](https://github.com/ollama/ollama/commit/15016413de1cfeb9dbac8e8ddeec20759623bcde) Update gen_windows.ps1 - [`6f18297`](https://github.com/ollama/ollama/commit/6f18297b3a8711da2a538a0cd670e7dae48307a6) Update gen_windows.ps1 - [`9c0db4c`](https://github.com/ollama/ollama/commit/9c0db4cc83d488a9a51d262fac34aea1f651d347) Update gen_windows.ps1 ### 📊 Changes **2 files changed** (+25 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `llm/generate/gen_linux.sh` (+15 -1) 📝 `llm/generate/gen_windows.ps1` (+10 -1) </details> ### 📄 Description Appends OLLAMA_CUSTOM_GPU_DEFS to CMAKE_DEFS. Will override any previously set build flags, allows for customizing GPU options when building from source. --- <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:25:50 -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#11258