[GH-ISSUE #8772] ollama run on AMD 6750 GPU. (solved) #52206

Closed
opened 2026-04-28 22:30:19 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @green198732 on GitHub (Feb 2, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8772

What is the issue?

1.modify the Environment="HSA_OVERRIDE_GFX_VERSION=10.3.0", and restart ollama service, pop out warning .
try run ollama, found it's still running on CPU.

● ollama.service - Ollama Service

2月 02 19:28:37 lichao ollama[20609]: time=2025-02-02T19:28:37.612+08:00 level=INFO source=gpu.go:226 msg="looking for compatible GPUs"
2月 02 19:28:37 lichao ollama[20609]: time=2025-02-02T19:28:37.628+08:00 level=WARN source=amd_linux.go:378 msg="amdgpu is not supported (supported types:[gfx1030 gfx1100 gfx1101 gfx1102 gfx900 gfx906 gfx908 gfx90a gfx940 gfx941 gfx942])" gpu_type=gfx1031 gpu=0 library=/usr/local/lib/ollama
2月 02 19:28:37 lichao ollama[20609]: time=2025-02-02T19:28:37.628+08:00 level=WARN source=amd_linux.go:385 msg="See https://github.com/ollama/ollama/blob/main/docs/gpu.md#overrides for HSA_OVERRIDE_GFX_VERSION usage"
2月 02 19:28:37 lichao ollama[20609]: time=2025-02-02T19:28:37.628+08:00 level=INFO source=amd_linux.go:404 msg="no compatible amdgpu devices detected"
2月 02 19:28:37 lichao ollama[20609]: time=2025-02-02T19:28:37.628+08:00 level=INFO source=gpu.go:392 msg="no compatible GPUs were discovered"
2月 02 19:28:37 lichao ollama[20609]: time=2025-02-02T19:28:37.628+08:00 level=INFO source=types.go:131 msg="inference compute" id=0 library=cpu variant=avx2 compute="" driver=0.0 name="" total="31.2 GiB" available="26.0 GiB"

  1. i paste the above information to deepseek, it advice me use below command to trouble shooting.

lichao@lichao:$ sudo grep -z HSA_OVERRIDE /proc/$(pidof ollama)/environ
lichao@lichao:
$ sudo grep -z HSA_OVERRIDE /proc/$(pidof ollama)/environ
lichao@lichao:$ sudo systemd-analyze verify /etc/systemd/system/ollama.service
lichao@lichao:
$ sudo systemctl daemon-reload
lichao@lichao:$ sudo systemctl reset-failed ollama.service
lichao@lichao:
$ sudo systemctl restart ollama.service
lichao@lichao:$ sudo systemctl show ollama.service --property=Environment
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin HSA_OVERRIDE_GFX_VERSION=10.3.0
lichao@lichao:
$

and then it works on GPU/CPU 👍

lichao@lichao:$ ollama ps
NAME ID SIZE PROCESSOR UNTIL
deepseek-r1:7b 0a8c26691023 6.0 GB 100% GPU 4 minutes from now
lichao@lichao:
$ ollama ps
NAME ID SIZE PROCESSOR UNTIL
deepseek-r1:32b 38056bbcbb2d 22 GB 46%/54% CPU/GPU 4 minutes from now

refer above information if you also met same issue.

OS

Linux

GPU

AMD

CPU

AMD

Ollama version

0.5.7

Originally created by @green198732 on GitHub (Feb 2, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8772 ### What is the issue? 1.modify the Environment="HSA_OVERRIDE_GFX_VERSION=10.3.0", and restart ollama service, pop out warning . try run ollama, found it's still running on CPU. ● ollama.service - Ollama Service 2月 02 19:28:37 lichao ollama[20609]: time=2025-02-02T19:28:37.612+08:00 level=INFO source=gpu.go:226 msg="looking for compatible GPUs" 2月 02 19:28:37 lichao ollama[20609]: time=2025-02-02T19:28:37.628+08:00 level=WARN source=amd_linux.go:378 msg="amdgpu is not supported (supported types:[gfx1030 gfx1100 gfx1101 gfx1102 gfx900 gfx906 gfx908 gfx90a gfx940 gfx941 gfx942])" gpu_type=gfx1031 gpu=0 library=/usr/local/lib/ollama 2月 02 19:28:37 lichao ollama[20609]: time=2025-02-02T19:28:37.628+08:00 level=WARN source=amd_linux.go:385 msg="See https://github.com/ollama/ollama/blob/main/docs/gpu.md#overrides for HSA_OVERRIDE_GFX_VERSION usage" 2月 02 19:28:37 lichao ollama[20609]: time=2025-02-02T19:28:37.628+08:00 level=INFO source=amd_linux.go:404 msg="no compatible amdgpu devices detected" 2月 02 19:28:37 lichao ollama[20609]: time=2025-02-02T19:28:37.628+08:00 level=INFO source=gpu.go:392 msg="no compatible GPUs were discovered" 2月 02 19:28:37 lichao ollama[20609]: time=2025-02-02T19:28:37.628+08:00 level=INFO source=types.go:131 msg="inference compute" id=0 library=cpu variant=avx2 compute="" driver=0.0 name="" total="31.2 GiB" available="26.0 GiB" 2. i paste the above information to deepseek, it advice me use below command to trouble shooting. lichao@lichao:~$ sudo grep -z HSA_OVERRIDE /proc/$(pidof ollama)/environ lichao@lichao:~$ sudo grep -z HSA_OVERRIDE /proc/$(pidof ollama)/environ lichao@lichao:~$ sudo systemd-analyze verify /etc/systemd/system/ollama.service lichao@lichao:~$ sudo systemctl daemon-reload lichao@lichao:~$ sudo systemctl reset-failed ollama.service lichao@lichao:~$ sudo systemctl restart ollama.service lichao@lichao:~$ sudo systemctl show ollama.service --property=Environment Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin HSA_OVERRIDE_GFX_VERSION=10.3.0 lichao@lichao:~$ and then it works on GPU/CPU 👍 lichao@lichao:~$ ollama ps NAME ID SIZE PROCESSOR UNTIL deepseek-r1:7b 0a8c26691023 6.0 GB 100% GPU 4 minutes from now lichao@lichao:~$ ollama ps NAME ID SIZE PROCESSOR UNTIL deepseek-r1:32b 38056bbcbb2d 22 GB 46%/54% CPU/GPU 4 minutes from now refer above information if you also met same issue. ### OS Linux ### GPU AMD ### CPU AMD ### Ollama version 0.5.7
GiteaMirror added the bug label 2026-04-28 22:30:19 -05:00
Author
Owner

@jmorganca commented on GitHub (Feb 2, 2025):

Thanks for the info! Will close this now

<!-- gh-comment-id:2629561908 --> @jmorganca commented on GitHub (Feb 2, 2025): Thanks for the info! Will close this now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#52206