[GH-ISSUE #15956] Ollama 0.23 don't detect CUDA devices #87850

Closed
opened 2026-05-10 06:27:00 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @trizt on GitHub (May 4, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15956

What is the issue?

OS: Artix Linux
Packages: ollama, ollama-cuda

When running ollama run llama3.2 "Count to 100" --verbose

0.23: total duration: 25.304998355s
llama_context: CPU output buffer size = 0.50 MiB

0.22: total duration: 2.639102603s
llama_context: CUDA_Host output buffer size = 0.50 MiB

I have two nVidia graphics cards, one is dedicated to a VM with vfio_pci and the other is the Linux machines graphics card which is used both for output and LLMs. Upgrade to the latest version everything runs on CPU, downgrading to 0.22 and things runs on the GPU (no reboot done).

Running nvtop shows no ollama among the GPU using processes listed when using version 0.23, while when running 0.22 there is the process listed and you also see memory and gpu usage.

discover/runner.go and ml/device.go had some changes, not sure if I can blame those or if it's something else that changed that causes the break for me at least.

Relevant log output


OS

Linux

GPU

Nvidia

CPU

AMD

Ollama version

0.23

Originally created by @trizt on GitHub (May 4, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15956 ### What is the issue? OS: Artix Linux Packages: ollama, ollama-cuda When running **ollama run llama3.2 "Count to 100" --verbose** 0.23: total duration: 25.304998355s llama_context: CPU output buffer size = 0.50 MiB 0.22: total duration: 2.639102603s llama_context: CUDA_Host output buffer size = 0.50 MiB I have two nVidia graphics cards, one is dedicated to a VM with vfio_pci and the other is the Linux machines graphics card which is used both for output and LLMs. Upgrade to the latest version everything runs on CPU, downgrading to 0.22 and things runs on the GPU (no reboot done). Running nvtop shows no ollama among the GPU using processes listed when using version 0.23, while when running 0.22 there is the process listed and you also see memory and gpu usage. discover/runner.go and ml/device.go had some changes, not sure if I can blame those or if it's something else that changed that causes the break for me at least. ### Relevant log output ```shell ``` ### OS Linux ### GPU Nvidia ### CPU AMD ### Ollama version 0.23
GiteaMirror added the bug label 2026-05-10 06:27:00 -05:00
Author
Owner

@rick-github commented on GitHub (May 4, 2026):

Server logs will aid in debugging.

<!-- gh-comment-id:4370540470 --> @rick-github commented on GitHub (May 4, 2026): [Server logs](https://docs.ollama.com/troubleshooting) will aid in debugging.
Author
Owner

@dquesadacr commented on GitHub (May 4, 2026):

I had the same issue. Somehow, the new ollama-cuda version does not provide libggml-cuda.so, found before at /usr/lib/ollama (on Artix/Arch). Fixed it by downgrading to v0.22.1-1, hope they fix it soon.

<!-- gh-comment-id:4370638872 --> @dquesadacr commented on GitHub (May 4, 2026): I had the same issue. Somehow, the new `ollama-cuda` version does not provide `libggml-cuda.so`, found before at `/usr/lib/ollama` (on Artix/Arch). Fixed it by downgrading to `v0.22.1-1`, hope they fix it soon.
Author
Owner

@trizt commented on GitHub (May 4, 2026):

Ollama 0.22.1 content in /usr/lib/ollama:
libggml-base.so libggml-base.so.0.0.0 libggml-cpu-haswell.so libggml-cpu-sandybridge.so libggml-cpu-sse42.so libggml-cuda.so
libggml-base.so.0 libggml-cpu-alderlake.so libggml-cpu-icelake.so libggml-cpu-skylakex.so libggml-cpu-x64.so

pacman -Ql ollama-cuda
ollama-cuda /usr/
ollama-cuda /usr/lib/
ollama-cuda /usr/lib/ollama/
ollama-cuda /usr/lib/ollama/libggml-cuda.so

Ollama 0.23.0 content in /usr/lib/ollama:
libggml-base.so libggml-base.so.0.0.0 libggml-cpu-haswell.so libggml-cpu-sandybridge.so libggml-cpu-sse42.so
libggml-base.so.0 libggml-cpu-alderlake.so libggml-cpu-icelake.so libggml-cpu-skylakex.so libggml-cpu-x64.so

pacman -Ql ollama-cuda
<no output at all>

so I can confirm that it's missing the libggml-cuda.so, it seems the ollama-cuda has become a empty package. I guess I have to go downstream with this issue, we can close it.

<!-- gh-comment-id:4371118449 --> @trizt commented on GitHub (May 4, 2026): Ollama 0.22.1 content in /usr/lib/ollama: libggml-base.so libggml-base.so.0.0.0 libggml-cpu-haswell.so libggml-cpu-sandybridge.so libggml-cpu-sse42.so libggml-cuda.so libggml-base.so.0 libggml-cpu-alderlake.so libggml-cpu-icelake.so libggml-cpu-skylakex.so libggml-cpu-x64.so pacman -Ql ollama-cuda ollama-cuda /usr/ ollama-cuda /usr/lib/ ollama-cuda /usr/lib/ollama/ ollama-cuda /usr/lib/ollama/libggml-cuda.so Ollama 0.23.0 content in /usr/lib/ollama: libggml-base.so libggml-base.so.0.0.0 libggml-cpu-haswell.so libggml-cpu-sandybridge.so libggml-cpu-sse42.so libggml-base.so.0 libggml-cpu-alderlake.so libggml-cpu-icelake.so libggml-cpu-skylakex.so libggml-cpu-x64.so pacman -Ql ollama-cuda `<no output at all>` so I can confirm that it's missing the libggml-cuda.so, it seems the ollama-cuda has become a empty package. I guess I have to go downstream with this issue, we can close it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#87850