[PR #13695] [MERGED] x/imagegen: install mlx.metallib and fix macOS rpath handling, add mlx library directories to LD_LIBRARY_PATH #76640

Closed
opened 2026-05-05 09:16:56 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13695
Author: @jmorganca
Created: 1/13/2026
Status: Merged
Merged: 1/13/2026
Merged by: @jmorganca

Base: mainHead: jmorganca/mlx-fix-ld-library


📝 Commits (2)

  • 4b73532 x/imagegen: add mlx library directories to LD_LIBRARY_PATH
  • 6d51300 x/imagegen: install mlx.metallib and fix macOS rpath handling

📊 Changes

3 files changed (+46 additions, -3 deletions)

View changed files

📝 CMakeLists.txt (+10 -1)
📝 scripts/build_darwin.sh (+4 -2)
📝 x/imagegen/server.go (+32 -0)

📄 Description

  • Install mlx.metallib for arm64 builds (required for Metal GPU acceleration)
  • Apply rpath settings to all macOS builds, not just x86_64
  • Add CMAKE_BUILD_WITH_INSTALL_RPATH to avoid install_name_tool errors
  • Update build_darwin.sh to copy, sign, and package the metallib

🔄 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/13695 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 1/13/2026 **Status:** ✅ Merged **Merged:** 1/13/2026 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/mlx-fix-ld-library` --- ### 📝 Commits (2) - [`4b73532`](https://github.com/ollama/ollama/commit/4b7353261b83805d0445bb7f030e132c5fd2d666) x/imagegen: add mlx library directories to LD_LIBRARY_PATH - [`6d51300`](https://github.com/ollama/ollama/commit/6d5130004021cd0bc186f12a23c55baa8319feb8) x/imagegen: install mlx.metallib and fix macOS rpath handling ### 📊 Changes **3 files changed** (+46 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+10 -1) 📝 `scripts/build_darwin.sh` (+4 -2) 📝 `x/imagegen/server.go` (+32 -0) </details> ### 📄 Description - Install mlx.metallib for arm64 builds (required for Metal GPU acceleration) - Apply rpath settings to all macOS builds, not just x86_64 - Add CMAKE_BUILD_WITH_INSTALL_RPATH to avoid install_name_tool errors - Update build_darwin.sh to copy, sign, and package the metallib --- <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-05-05 09:16:56 -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#76640