[PR #15550] [MERGED] gemma4: fix compiler error on metal #46446

Closed
opened 2026-04-25 01:52:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15550
Author: @dhiltgen
Created: 4/13/2026
Status: Merged
Merged: 4/13/2026
Merged by: @dhiltgen

Base: mainHead: fix_m5_metal_compile


📝 Commits (1)

  • d640415 gemma4: fix compiler error on metal

📊 Changes

7 files changed (+17 additions, -14 deletions)

View changed files

📝 llama/patches/0027-interleave-multi-rope.patch (+11 -8)
📝 llama/patches/0032-ggml-enable-MLA-flash-attention-for-GLM-4.7-flash.patch (+1 -1)
📝 llama/patches/0033-ggml-metal-solve_tri.patch (+1 -1)
📝 llama/patches/0034-ggml-metal-guard-mul_mat_id-map0-and-add-ne20-22-spe.patch (+1 -1)
📝 llama/patches/0036-backport-kernels-for-gemma4.patch (+1 -1)
📝 ml/backend/ggml/ggml/src/ggml-metal/ggml-metal-embed.metal (+1 -1)
📝 ml/backend/ggml/ggml/src/ggml-metal/ggml-metal.metal (+1 -1)

📄 Description

On some systems, the metal runtime compiler is failing due to an uninitialized variable from #15378.

Fixes #15548


🔄 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/15550 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 4/13/2026 **Status:** ✅ Merged **Merged:** 4/13/2026 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `fix_m5_metal_compile` --- ### 📝 Commits (1) - [`d640415`](https://github.com/ollama/ollama/commit/d6404151d7ff6fed14a0c4ea7b44ef9cdf607c46) gemma4: fix compiler error on metal ### 📊 Changes **7 files changed** (+17 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `llama/patches/0027-interleave-multi-rope.patch` (+11 -8) 📝 `llama/patches/0032-ggml-enable-MLA-flash-attention-for-GLM-4.7-flash.patch` (+1 -1) 📝 `llama/patches/0033-ggml-metal-solve_tri.patch` (+1 -1) 📝 `llama/patches/0034-ggml-metal-guard-mul_mat_id-map0-and-add-ne20-22-spe.patch` (+1 -1) 📝 `llama/patches/0036-backport-kernels-for-gemma4.patch` (+1 -1) 📝 `ml/backend/ggml/ggml/src/ggml-metal/ggml-metal-embed.metal` (+1 -1) 📝 `ml/backend/ggml/ggml/src/ggml-metal/ggml-metal.metal` (+1 -1) </details> ### 📄 Description On some systems, the metal runtime compiler is failing due to an uninitialized variable from #15378. Fixes #15548 --- <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-25 01:52: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#46446