[PR #9159] [MERGED] llama: add patch to fix ggml backend reg errors #12880

Closed
opened 2026-04-13 00:11:50 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9159
Author: @jmorganca
Created: 2/17/2025
Status: Merged
Merged: 2/19/2025
Merged by: @jmorganca

Base: mainHead: jmorganca/backend-reg-paths


📝 Commits (1)

  • 197018a llama: add patch to improve ggml backend reg

📊 Changes

2 files changed (+325 additions, -76 deletions)

View changed files

llama/patches/0018-use-std-filesystem-path-instead-of-wstring.patch (+285 -0)
📝 ml/backend/ggml/ggml/src/ggml-backend-reg.cpp (+40 -76)

📄 Description

This PR adds a patch that fixes issues on linux with utf-8 characters in paths required by ggml's discovery logic by relying on std::filesystem::path instead of using std::wstring which are not compatible with Unix filepaths. Once we're happy with this I'm planning to upstream it to GGML.

Fixes https://github.com/ollama/ollama/issues/9153


🔄 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/9159 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 2/17/2025 **Status:** ✅ Merged **Merged:** 2/19/2025 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/backend-reg-paths` --- ### 📝 Commits (1) - [`197018a`](https://github.com/ollama/ollama/commit/197018afa45fc15537507280a607c539e8adc1ab) llama: add patch to improve ggml backend reg ### 📊 Changes **2 files changed** (+325 additions, -76 deletions) <details> <summary>View changed files</summary> ➕ `llama/patches/0018-use-std-filesystem-path-instead-of-wstring.patch` (+285 -0) 📝 `ml/backend/ggml/ggml/src/ggml-backend-reg.cpp` (+40 -76) </details> ### 📄 Description This PR adds a patch that fixes issues on linux with utf-8 characters in paths required by ggml's discovery logic by relying on `std::filesystem::path` instead of using `std::wstring` which are not compatible with Unix filepaths. Once we're happy with this I'm planning to upstream it to GGML. Fixes https://github.com/ollama/ollama/issues/9153 --- <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-13 00:11: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#12880