[PR #8558] Fix build for loongarch64, go arch is not same with uname -m #12726

Open
opened 2026-04-13 00:08:13 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8558
Author: @ideal
Created: 1/24/2025
Status: 🔄 Open

Base: mainHead: main


📝 Commits (2)

  • f1ae2a6 according to ggml source code, we need to set GGML_LASX / GGML_LSX on loongarch64
  • 38b1179 add flag -mlasx to build ggml-cpu on loongarch64

📊 Changes

3 files changed (+11 additions, -0 deletions)

View changed files

📝 CMakeLists.txt (+3 -0)
📝 docs/development.md (+6 -0)
📝 ml/backend/ggml/ggml/src/ggml-cpu/cpu.go (+2 -0)

📄 Description

go tool dist list: linux/loong64, but the result of uname -m is loongarch64

More info: https://areweloongyet.com/docs/loong-or-loongarch/


🔄 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/8558 **Author:** [@ideal](https://github.com/ideal) **Created:** 1/24/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`f1ae2a6`](https://github.com/ollama/ollama/commit/f1ae2a6462e360d8cb4a89886441ec0458fbd1ec) according to ggml source code, we need to set GGML_LASX / GGML_LSX on loongarch64 - [`38b1179`](https://github.com/ollama/ollama/commit/38b11797e268739d8df438f510993cf30e5c7af5) add flag -mlasx to build ggml-cpu on loongarch64 ### 📊 Changes **3 files changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+3 -0) 📝 `docs/development.md` (+6 -0) 📝 `ml/backend/ggml/ggml/src/ggml-cpu/cpu.go` (+2 -0) </details> ### 📄 Description go tool dist list: linux/loong64, but the result of uname -m is loongarch64 More info: https://areweloongyet.com/docs/loong-or-loongarch/ --- <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:08:13 -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#12726