[PR #12946] [CLOSED] ggml-cpu: Resolves build failure on ppc64le #14007

Closed
opened 2026-04-13 00:42:28 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12946
Author: @shalinib-ibm
Created: 11/4/2025
Status: Closed

Base: mainHead: bug_fix


📝 Commits (2)

  • 195b9fd PowerPC:Fix config and build failure
  • 02725d3 Merge branch 'main' into bug_fix

📊 Changes

6 files changed (+2394 additions, -4 deletions)

View changed files

📝 ml/backend/ggml/ggml/src/CMakeLists.txt (+1 -1)
📝 ml/backend/ggml/ggml/src/ggml-cpu/arch-fallback.h (+0 -1)
ml/backend/ggml/ggml/src/ggml-cpu/arch/powerpc/cpu-feats.cpp (+82 -0)
ml/backend/ggml/ggml/src/ggml-cpu/arch/powerpc/powerpc.go (+5 -0)
ml/backend/ggml/ggml/src/ggml-cpu/arch/powerpc/quants.c (+2305 -0)
📝 ml/backend/ggml/ggml/src/ggml-cpu/simd-mappings.h (+1 -2)

📄 Description

This patch adds cpu backend support and fix build failures on POWER systems

  1. Added ggml-cpu/arch/powerpc directory to host Power-specific code.
  2. Fixed compilation errors in sgemm.cpp and simd-mappings.h where vector was not defined by explicitly mapping it to __vector.
  3. Resolved build errors from -mcpu=power11 by replacing it with the supported -mcpu=power10.

🔄 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/12946 **Author:** [@shalinib-ibm](https://github.com/shalinib-ibm) **Created:** 11/4/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `bug_fix` --- ### 📝 Commits (2) - [`195b9fd`](https://github.com/ollama/ollama/commit/195b9fd176c6988765368c1253d7039c86f55300) PowerPC:Fix config and build failure - [`02725d3`](https://github.com/ollama/ollama/commit/02725d3d64510e335bbb0940196ab22385651bc2) Merge branch 'main' into bug_fix ### 📊 Changes **6 files changed** (+2394 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `ml/backend/ggml/ggml/src/CMakeLists.txt` (+1 -1) 📝 `ml/backend/ggml/ggml/src/ggml-cpu/arch-fallback.h` (+0 -1) ➕ `ml/backend/ggml/ggml/src/ggml-cpu/arch/powerpc/cpu-feats.cpp` (+82 -0) ➕ `ml/backend/ggml/ggml/src/ggml-cpu/arch/powerpc/powerpc.go` (+5 -0) ➕ `ml/backend/ggml/ggml/src/ggml-cpu/arch/powerpc/quants.c` (+2305 -0) 📝 `ml/backend/ggml/ggml/src/ggml-cpu/simd-mappings.h` (+1 -2) </details> ### 📄 Description This patch adds cpu backend support and fix build failures on POWER systems 1. Added `ggml-cpu/arch/powerpc` directory to host Power-specific code. 2. Fixed compilation errors in `sgemm.cpp` and simd-mappings.h where `vector` was not defined by explicitly mapping it to `__vector`. 3. Resolved build errors from `-mcpu=power11` by replacing it with the supported `-mcpu=power10`. --- <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:42:28 -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#14007