[PR #13427] [CLOSED] ggml-cpu: Resolves build failure on ppc64le #24741

Closed
opened 2026-04-19 17:46:49 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: mainHead: build_power


📝 Commits (2)

  • e859128 ggml-cpu: Resolves build failure on ppc64le
  • dde18ad Update arch-fallback.h

📊 Changes

6 files changed (+2398 additions, -3 deletions)

View changed files

📝 ml/backend/ggml/ggml/src/CMakeLists.txt (+1 -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/llamafile/sgemm.cpp (+4 -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/13427 **Author:** [@shalinib-ibm](https://github.com/shalinib-ibm) **Created:** 12/11/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `build_power` --- ### 📝 Commits (2) - [`e859128`](https://github.com/ollama/ollama/commit/e859128c96d42d3388193824f92143f401f7b0f4) ggml-cpu: Resolves build failure on ppc64le - [`dde18ad`](https://github.com/ollama/ollama/commit/dde18ad9004d0ab0f9cbda7fee35a072dbcac38e) Update arch-fallback.h ### 📊 Changes **6 files changed** (+2398 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `ml/backend/ggml/ggml/src/CMakeLists.txt` (+1 -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/llamafile/sgemm.cpp` (+4 -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-19 17:46:49 -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#24741