[PR #10034] [CLOSED] HSA_OVERRIDE_GFX_VERSION for individual GPU's #75418

Closed
opened 2026-05-05 07:50:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10034
Author: @colin-stubbs
Created: 3/29/2025
Status: Closed

Base: mainHead: main


📝 Commits (2)

  • cbf41f0 add support for HSA_OVERRIDE_GFX_VERSION_% on Linux
  • 451bb35 Merge branch 'ollama:main' into main

📊 Changes

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

View changed files

📝 discover/amd_linux.go (+16 -3)

📄 Description

Allows overriding rocm version by GPU ID matching upstream changes here: https://github.com/ROCm/ROCT-Thunk-Interface/pull/104

e.g. in a system with two AMD GPU's, GPU 0 and GPU 1, setting HSA_OVERRIDE_GFX_VERSION_1=10.3.0 would force gfx1030 on GPU 1, while GPU 0 would still utilise auto-detection for supported gfx version.

This would resolve:

  1. [PR #192] [MERGED] update development.md (#10033)
  2. [GH-ISSUE #12774] 0.12.5-rocm AMD Vega 10 "failure during GPU discovery" ... error="runner crashed". It worked on 0.12.3-rocm (#8473)

And possibly other issues.


🔄 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/10034 **Author:** [@colin-stubbs](https://github.com/colin-stubbs) **Created:** 3/29/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`cbf41f0`](https://github.com/ollama/ollama/commit/cbf41f0a8457aa02103c58dbccf5e47686d30b23) add support for HSA_OVERRIDE_GFX_VERSION_% on Linux - [`451bb35`](https://github.com/ollama/ollama/commit/451bb350b29a418ba9b27ae9b858aea6103f13cc) Merge branch 'ollama:main' into main ### 📊 Changes **1 file changed** (+16 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `discover/amd_linux.go` (+16 -3) </details> ### 📄 Description Allows overriding rocm version by GPU ID matching upstream changes here: https://github.com/ROCm/ROCT-Thunk-Interface/pull/104 e.g. in a system with two AMD GPU's, GPU 0 and GPU 1, setting HSA_OVERRIDE_GFX_VERSION_1=10.3.0 would force gfx1030 on GPU 1, while GPU 0 would still utilise auto-detection for supported gfx version. This would resolve: 1. #10033 2. #8473 And possibly other issues. --- <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 07:50:51 -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#75418