Hello,
I’ve been trying to get Ollama running on my AMD GPU and I think I’ve finally managed it by installing ollama-linux-amd64-rocm.tgz
to my /usr
.
Before I submit a package request, have I goofed and this is in fact not needed?
Steps to Reproduce
-
Install
ollama
from the official repositories. -
Run
ollama serve
and see it’s not using the AMD GPU.
ollama_no_rocm.txt (5.6 KB) -
Install
rocm-opencl
androcm-smi
from the official repositories. -
Reboot.
-
Run
ollama serve
and see it still isn’t using the AMD GPU.
ollama_repo_rocm.txt (5.6 KB) -
Remove
rocm-opencl
androcm-smi
. -
Manually install the rocm bindings for ollama, as documented by ollama.
https://github.com/ollama/ollama/blob/4614fafae0ee58af5b9d04ec4b8c2eb3846274da/docs/linux.md#amd-gpu-installcurl -L https://ollama.com/download/ollama-linux-amd64-rocm.tgz | sudo tar -C /usr -xz
-
Reboot.
-
Run
ollama serve
and see it now uses the AMD GPU.
ollama_manual_rocm.txt (5.2 KB)
My System
- OpenMandriva Lx version: OpenMandriva Lx release 25.03 (ROME) Rolling for x86_64
- Kernel version: 6.13.5-desktop-1omv2590
- CPU: AMD Ryzen 5 3600 (12) @ 3.600GHz
- GPU: AMD Radeon RX 6800 XT
- GPU VBIOS version: 113-EXT48025-001