[GH-ISSUE #8748] Does not recognize AMD GPUs on NixOS #31435

Closed
opened 2026-04-22 11:52:53 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @anadon on GitHub (Feb 1, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8748

What is the issue?

Hello,

I got started running ollama on NixOS and very quickly found that it wasn't using my RX 7900 XTX. Here's the discussion where we troubleshot the issue and found a solution. The discussion at time of writing does include even some straces and the debug output from a running server with the problem. The user "rjpc" believes the issue is in 475333d533/discover/amd_linux.go (L22) not being flexible in a way amenable to how NixOS abstracts its runtime.

OS

Linux

GPU

AMD

CPU

AMD

Ollama version

0.3.12

Originally created by @anadon on GitHub (Feb 1, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8748 ### What is the issue? Hello, I got started running `ollama` on NixOS and very quickly found that it wasn't using my RX 7900 XTX. Here's the discussion where we troubleshot the issue and found a solution. The discussion at time of writing does include even some `strace`s and the debug output from a running server with the problem. The user "rjpc" believes the issue is in https://github.com/ollama/ollama/blob/475333d533e088538e5d77c0ba65ea60833b2c77/discover/amd_linux.go#L22 not being flexible in a way amenable to how NixOS abstracts its runtime. ### OS Linux ### GPU AMD ### CPU AMD ### Ollama version 0.3.12
GiteaMirror added the bug label 2026-04-22 11:52:53 -05:00
Author
Owner

@endgame commented on GitHub (Feb 3, 2025):

The NixOS Discourse discussion thread wasn't linked from the OP, so here it is: https://discourse.nixos.org/t/ollama-isnt-using-gpu-amd-rx-7900-xtx/59596

<!-- gh-comment-id:2632364784 --> @endgame commented on GitHub (Feb 3, 2025): The NixOS Discourse discussion thread wasn't linked from the OP, so here it is: https://discourse.nixos.org/t/ollama-isnt-using-gpu-amd-rx-7900-xtx/59596
Author
Owner

@rick-github commented on GitHub (Jan 5, 2026):

This appears to have been resolved by setting HSA_OVERRIDE_GFX_VERSION.

<!-- gh-comment-id:3709738830 --> @rick-github commented on GitHub (Jan 5, 2026): This appears to have been resolved by setting `HSA_OVERRIDE_GFX_VERSION`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#31435