[PR #12737] cmake: restrict GGML_CPU_ALL_VARIANTS to supported architectures #60630

Open
opened 2026-04-29 15:42:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12737
Author: @wszqkzqk
Created: 10/22/2025
Status: 🔄 Open

Base: mainHead: restrict-GGML_CPU_ALL_VARIANTS


📝 Commits (1)

  • 0ebea15 cmake: restrict GGML_CPU_ALL_VARIANTS to supported architectures

📊 Changes

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

View changed files

📝 CMakeLists.txt (+1 -1)

📄 Description

The previous logic for enabling GGML_CPU_ALL_VARIANTS used a blacklist to exclude ARM processors. This caused builds to fail on other architectures not in the blacklist and not compatible with the option, such as loongarch64.

This changes the condition to a whitelist, only enabling GGML_CPU_ALL_VARIANTS for x86 and PowerPC architectures.

Tested on Arch Linux for Loong64 with this PR and #12739 applied. Here is the log: ollama-0.12.6-1-loong64-build.log

  • Failed during final linking: It still fetch go mod from unpatched # github.com/ollama/ollama

🔄 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/12737 **Author:** [@wszqkzqk](https://github.com/wszqkzqk) **Created:** 10/22/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `restrict-GGML_CPU_ALL_VARIANTS` --- ### 📝 Commits (1) - [`0ebea15`](https://github.com/ollama/ollama/commit/0ebea159cb66c6b4b6fdccebfda1849fdecfb887) cmake: restrict GGML_CPU_ALL_VARIANTS to supported architectures ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+1 -1) </details> ### 📄 Description The previous logic for enabling GGML_CPU_ALL_VARIANTS used a blacklist to exclude ARM processors. This caused builds to fail on other architectures not in the blacklist and not compatible with the option, such as loongarch64. This changes the condition to a whitelist, only enabling GGML_CPU_ALL_VARIANTS for x86 and PowerPC architectures. Tested on Arch Linux for Loong64 with this PR and #12739 applied. Here is the log: [ollama-0.12.6-1-loong64-build.log](https://github.com/user-attachments/files/23056832/ollama-0.12.6-1-loong64-build.log) * Failed during final linking: It still fetch go mod from unpatched `# github.com/ollama/ollama` --- <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-29 15:42:30 -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#60630