[PR #11874] [MERGED] ggml: Use ordinal IDs for AMD GPUs on Linux when UUID is unavailable #24182

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11874
Author: @jessegross
Created: 8/12/2025
Status: Merged
Merged: 8/12/2025
Merged by: @jessegross

Base: mainHead: jessegross/uuid


📝 Commits (1)

  • 8ad50c1 ggml: Use ordinal IDs for AMD GPUs on Linux when UUID is unavailable

📊 Changes

2 files changed (+148 additions, -80 deletions)

View changed files

📝 llama/patches/0017-ggml-Export-GPU-UUIDs.patch (+94 -42)
📝 ml/backend/ggml/ggml/src/ggml-cuda/ggml-cuda.cu (+54 -38)

📄 Description

Some AMD GPUs do not provide UUIDs and report only "XX". In these cases, we should use the ordinal ID as an alternate identifier. This is the same as we always need to do on Windows for AMD.

In addition, this prints out the ID for each GPU when enumerating them for easier debugging in the future.


🔄 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/11874 **Author:** [@jessegross](https://github.com/jessegross) **Created:** 8/12/2025 **Status:** ✅ Merged **Merged:** 8/12/2025 **Merged by:** [@jessegross](https://github.com/jessegross) **Base:** `main` ← **Head:** `jessegross/uuid` --- ### 📝 Commits (1) - [`8ad50c1`](https://github.com/ollama/ollama/commit/8ad50c195818ece2b706f3791e6f46a29da9f680) ggml: Use ordinal IDs for AMD GPUs on Linux when UUID is unavailable ### 📊 Changes **2 files changed** (+148 additions, -80 deletions) <details> <summary>View changed files</summary> 📝 `llama/patches/0017-ggml-Export-GPU-UUIDs.patch` (+94 -42) 📝 `ml/backend/ggml/ggml/src/ggml-cuda/ggml-cuda.cu` (+54 -38) </details> ### 📄 Description Some AMD GPUs do not provide UUIDs and report only "XX". In these cases, we should use the ordinal ID as an alternate identifier. This is the same as we always need to do on Windows for AMD. In addition, this prints out the ID for each GPU when enumerating them for easier debugging in the future. --- <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:25:58 -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#24182