[GH-ISSUE #602] Docker image looks for libcudart.so.12 but doesn't ifnd it #46777

Closed
opened 2026-04-27 23:59:18 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @jmorganca on GitHub (Sep 26, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/602

The subprocess server looks for libcudart.so.12 but can't find it. It seems libcudart.so.12.0 is packaged

error while loading shared libraries: libcudart.so.12: cannot open shared object file: No such file or directory

When looking at the temporary subprocess directory:

ls -al /tmp/ollama3423059418/llama.cpp/ggml/build/cuda/bin/
drwxr-xr-x 2 ollama ollama      4096 Sep 26 06:27 .
drwxr-xr-x 3 ollama ollama      4096 Sep 26 06:27 ..
-rwxr-xr-x 1 ollama ollama 107473968 Sep 26 06:27 libcublas.so.12
-rwxr-xr-x 1 ollama ollama 515090264 Sep 26 06:27 libcublasLt.so.12
-rwxr-xr-x 1 ollama ollama    687456 Sep 26 06:27 libcudart.so.12.0
-rwxr-xr-x 1 ollama ollama   5471600 Sep 26 06:27 server
Originally created by @jmorganca on GitHub (Sep 26, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/602 The subprocess `server` looks for `libcudart.so.12` but can't find it. It seems `libcudart.so.12.0` is packaged ``` error while loading shared libraries: libcudart.so.12: cannot open shared object file: No such file or directory ``` When looking at the temporary subprocess directory: ``` ls -al /tmp/ollama3423059418/llama.cpp/ggml/build/cuda/bin/ drwxr-xr-x 2 ollama ollama 4096 Sep 26 06:27 . drwxr-xr-x 3 ollama ollama 4096 Sep 26 06:27 .. -rwxr-xr-x 1 ollama ollama 107473968 Sep 26 06:27 libcublas.so.12 -rwxr-xr-x 1 ollama ollama 515090264 Sep 26 06:27 libcublasLt.so.12 -rwxr-xr-x 1 ollama ollama 687456 Sep 26 06:27 libcudart.so.12.0 -rwxr-xr-x 1 ollama ollama 5471600 Sep 26 06:27 server ```
Author
Owner

@jmorganca commented on GitHub (Sep 26, 2023):

Fixed on main

<!-- gh-comment-id:1734933682 --> @jmorganca commented on GitHub (Sep 26, 2023): Fixed on `main`
Author
Owner

@willswire commented on GitHub (Oct 26, 2023):

I am having this issue currently:

/tmp/ollama568860520/11ama.cpp/gguf/build/cuda/bin/ollama-runner: error while loading shared libraries: libcudart.so.12: cannot open shared object file: No such file or directory

but when I look in the directory, I see libcudart.so.12.0

likely has to do with llm/llama.cpp/patches/0001-copy-cuda-runtime-libraries.patch

<!-- gh-comment-id:1780482883 --> @willswire commented on GitHub (Oct 26, 2023): I am having this issue currently: `/tmp/ollama568860520/11ama.cpp/gguf/build/cuda/bin/ollama-runner: error while loading shared libraries: libcudart.so.12: cannot open shared object file: No such file or directory` but when I look in the directory, I see libcudart.so.12.0 likely has to do with llm/llama.cpp/patches/0001-copy-cuda-runtime-libraries.patch
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#46777