[PR #1192] [MERGED] main_gpu argument is not getting set for llamacpp #15771

Closed
opened 2026-04-16 05:07:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1192
Author: @purinda
Created: 11/18/2023
Status: Merged
Merged: 11/20/2023
Merged by: @BruceMacD

Base: mainHead: passing-of-main-gpu-arg-to-llama


📝 Commits (1)

  • bfe9179 main-gpu argument is not getting passed to llamacpp, fixed.

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 llm/llama.go (+2 -0)

📄 Description

In a multi-GPU platform I observed I cannot set the main GPU to be used to llamacpp though llamacpp itself support this through main_gpu argument.

This PR fixes just that.


🔄 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/1192 **Author:** [@purinda](https://github.com/purinda) **Created:** 11/18/2023 **Status:** ✅ Merged **Merged:** 11/20/2023 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `passing-of-main-gpu-arg-to-llama` --- ### 📝 Commits (1) - [`bfe9179`](https://github.com/ollama/ollama/commit/bfe91790977f7be6b51daf41eec760c825ebc48c) main-gpu argument is not getting passed to llamacpp, fixed. ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `llm/llama.go` (+2 -0) </details> ### 📄 Description In a multi-GPU platform I observed I cannot set the main GPU to be used to llamacpp though llamacpp itself support this through `main_gpu` argument. This PR fixes just that. --- <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-16 05:07:39 -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#15771