Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

sci-ml/ollama in GURU seems broken in latest ebuild

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
robinelvin
n00b
n00b
Posts: 23
Joined: Thu Jul 03, 2025 9:03 am
Location: Warrington, UK

sci-ml/ollama in GURU seems broken in latest ebuild

  • Quote

Post by robinelvin » Thu Jan 08, 2026 12:07 pm

Just asking here before posting a bug report. I'm running sci-ml/ollama from the GURU overlay and a recent upgrade or 0.13.5-r1 broke CUDA/Nvidia support.

The log message:

Code: Select all

time=2026-01-06T16:33:52.735Z level=DEBUG source=runner.go:153 msg="filtering device which didn't fully initialize" id=GPU-81103a2a-829d-6143-3c44-364f5faae525 libdir=/usr/lib64/ollama/backends pci_id=0000:00:07.0 library=CUDA
This means Ollama won't use my GPU.

I downgraded to 0.13.4 and got the same problem, rebooted just in case, same problem. Downgrading to 0.13.0 allows the GPU to work again.

Does anyone have any insights?
Top
Navar
Guru
Guru
Posts: 422
Joined: Mon Aug 20, 2012 4:10 am
Location: usa

  • Quote

Post by Navar » Thu Jan 08, 2026 8:43 pm

ggml_cuda_init: found 1 ROCm devices:
Device 0: AMD Radeon RX 6900 XT, gfx1030 (0x1030), VMM: no, Wave Size: 32,
ID: GPU-b1ec48fea8c82ef1
load_backend: loaded ROCm backend from /usr/lib64/ollama/backends/libggml-hip.so
ggml_vulkan: Found 1 Vulkan devices:
ggml_vulkan: 0 = AMD Radeon RX 6900 XT (RADV NAVI21) (radv) | uma: 0 | fp16: 1 | bf16: 0 | warp size: 32 | shared memory: 65536 | int dot: 1 | matrix cores: none
load_backend: loaded Vulkan backend from /usr/lib64/ollama/backends/libggml-vulkan.so
load_backend: loaded CPU backend from /usr/lib64/ollama/backends/libggml-cpu-haswell.so


[I-O] [ ] sci-ml/ollama-0.13.5-r1:0 working fine here with its wrapper around CUDA.

It should be easier on your end than here. Check your CUDA toolkit install/version, etc. Are you running in a container as well? Are you checking nvtop to monitor the GPU for other signs of life like vram allocation/activity? Should be a lot of noise from other people if the situation is commonplace. I didn't see anything interesting that was net new for a year+ on usual troubleshooting.
(I don't speak for/represent my current/past employers)
Top
robinelvin
n00b
n00b
Posts: 23
Joined: Thu Jul 03, 2025 9:03 am
Location: Warrington, UK

  • Quote

Post by robinelvin » Fri Jan 09, 2026 10:16 am

I changed the debug level to 2 and now I can see the issue:

Code: Select all

time=2026-01-09T10:14:26.542Z level=INFO source=ggml.go:136 msg="" architecture=llama file_type=unknown name="" description="" num_t
ensors=0 num_key_values=3
time=2026-01-09T10:14:26.542Z level=DEBUG source=ggml.go:94 msg="ggml backend load all from path" path=/usr/lib64/ollama
ggml_cuda_init: GGML_CUDA_FORCE_MMQ:    no
ggml_cuda_init: GGML_CUDA_FORCE_CUBLAS: no
ggml_cuda_init: found 1 CUDA devices:
/var/tmp/portage/sci-ml/ollama-0.13.5-r1/work/ollama-0.13.5/ml/backend/ggml/ggml/src/ggml-cuda/ggml-cuda.cu:335: GGML_ASSERT(ggml_cu
da_has_arch(info.devices[id].cc) && "ggml was not compiled with support for this arch") failed
ggml_cuda_init: GGML_CUDA_FORCE_MMQ:    no
ggml_cuda_init: GGML_CUDA_FORCE_CUBLAS: no
ggml_cuda_init: found 1 CUDA devices:
/var/tmp/portage/sci-ml/ollama-0.13.5-r1/work/ollama-0.13.5/ml/backend/ggml/ggml/src/ggml-cuda/ggml-cuda.cu:335: GGML_ASSERT(ggml_cu
da_has_arch(info.devices[id].cc) && "ggml was not compiled with support for this arch") failed
/usr/lib64/ollama/libggml-base.so.0(+0x17686) [0x7f9c55f8e686]
/usr/lib64/ollama/libggml-base.so.0(ggml_print_backtrace+0x20a) [0x7f9c55f8ebda]
/usr/lib64/ollama/libggml-base.so.0(ggml_abort+0x15b) [0x7f9c55f8edbb]
/usr/lib64/ollama/libggml-cuda.so(+0x10a93b) [0x7f9c2e10a93b]
/usr/lib64/ollama/libggml-cuda.so(_Z14ggml_cuda_infov+0x71) [0x7f9c2e10b5e1]
/usr/lib64/ollama/libggml-cuda.so(ggml_backend_cuda_reg+0x95) [0x7f9c2e10ca85]
/usr/bin/ollama(+0xe4f602) [0x559301a70602]
/usr/bin/ollama(+0xe4d206) [0x559301a6e206]
/usr/bin/ollama(+0xe4e374) [0x559301a6f374]
/usr/bin/ollama(+0xd2581) [0x559300cf3581]
/usr/lib64/ollama/libggml-base.so.0(+0x17686) [0x7f64905df686]
/usr/lib64/ollama/libggml-base.so.0(ggml_print_backtrace+0x20a) [0x7f64905dfbda]
/usr/lib64/ollama/libggml-base.so.0(ggml_abort+0x15b) [0x7f64905dfdbb]
/usr/lib64/ollama/libggml-cuda.so(+0x10a93b) [0x7f646e10a93b]
/usr/lib64/ollama/libggml-cuda.so(_Z14ggml_cuda_infov+0x71) [0x7f646e10b5e1]
/usr/lib64/ollama/libggml-cuda.so(ggml_backend_cuda_reg+0x95) [0x7f646e10ca85]
/usr/bin/ollama(+0xe4f602) [0x557fcaf8c602]
/usr/bin/ollama(+0xe4d206) [0x557fcaf8a206]
/usr/bin/ollama(+0xe4e374) [0x557fcaf8b374]
/usr/bin/ollama(+0xd2581) [0x557fca20f581]
SIGABRT: abort
Top
BJP
n00b
n00b
Posts: 3
Joined: Fri Sep 01, 2023 8:50 pm

  • Quote

Post by BJP » Thu Mar 19, 2026 2:56 pm

robinelvin wrote:I changed the debug level to 2 and now I can see the issue:
Did you get this fixed? I found in my case that I had to explicitly set CUDAARCHS="75" to support my RTX 2060 Super, as without setting CUDAARCHS the ebuild was building the library with support only for very recent cards.
Top
robinelvin
n00b
n00b
Posts: 23
Joined: Thu Jul 03, 2025 9:03 am
Location: Warrington, UK

  • Quote

Post by robinelvin » Fri Mar 20, 2026 8:36 am

BJP wrote:
robinelvin wrote:I changed the debug level to 2 and now I can see the issue:
Did you get this fixed? I found in my case that I had to explicitly set CUDAARCHS="75" to support my RTX 2060 Super, as without setting CUDAARCHS the ebuild was building the library with support only for very recent cards.
I reported a bug here: https://bugs.gentoo.org/968549

It's been closed but it still isn't working for me. I have tried with your CUDAARCHS flag and that doesn't work either. Only 0.13.0 worked for me and now that's gone so my setup is broken now.
Top
BJP
n00b
n00b
Posts: 3
Joined: Fri Sep 01, 2023 8:50 pm

  • Quote

Post by BJP » Fri Mar 20, 2026 2:43 pm

robinelvin wrote:
BJP wrote:
robinelvin wrote:I changed the debug level to 2 and now I can see the issue:
Did you get this fixed? I found in my case that I had to explicitly set CUDAARCHS="75" to support my RTX 2060 Super, as without setting CUDAARCHS the ebuild was building the library with support only for very recent cards.
I reported a bug here: https://bugs.gentoo.org/968549

It's been closed but it still isn't working for me. I have tried with your CUDAARCHS flag and that doesn't work either. Only 0.13.0 worked for me and now that's gone so my setup is broken now.
Funny thing for me is I think the fix put in for your bug is what broke it for me. When built with CUDAARCHS="all-major" libggml-cuda.so only had support for sm100 and sm120, leading my card to be filtered out with the same "filtering device which didn't fully initialize" message.

You can check what which architectures are supported on the currently installed build by running:

Code: Select all

% strings /usr/lib64/ollama/libggml-cuda.so | grep -E "sm_[0-9]+" | sort -u
.target sm_75
Identify the architecture of your card by running:

Code: Select all

% nvidia-smi --query-gpu=compute_cap --format=csv,noheader
7.5
Assuming you don't have the same card as me, there's probably a different number you would need in CUDAARCHS make.conf setting.
Top
robinelvin
n00b
n00b
Posts: 23
Joined: Thu Jul 03, 2025 9:03 am
Location: Warrington, UK

  • Quote

Post by robinelvin » Fri Mar 20, 2026 10:33 pm

BJP wrote:
robinelvin wrote:
BJP wrote: Did you get this fixed? I found in my case that I had to explicitly set CUDAARCHS="75" to support my RTX 2060 Super, as without setting CUDAARCHS the ebuild was building the library with support only for very recent cards.
I reported a bug here: https://bugs.gentoo.org/968549

It's been closed but it still isn't working for me. I have tried with your CUDAARCHS flag and that doesn't work either. Only 0.13.0 worked for me and now that's gone so my setup is broken now.
Funny thing for me is I think the fix put in for your bug is what broke it for me. When built with CUDAARCHS="all-major" libggml-cuda.so only had support for sm100 and sm120, leading my card to be filtered out with the same "filtering device which didn't fully initialize" message.

You can check what which architectures are supported on the currently installed build by running:

Code: Select all

% strings /usr/lib64/ollama/libggml-cuda.so | grep -E "sm_[0-9]+" | sort -u
.target sm_75
Identify the architecture of your card by running:

Code: Select all

% nvidia-smi --query-gpu=compute_cap --format=csv,noheader
7.5
Assuming you don't have the same card as me, there's probably a different number you would need in CUDAARCHS make.conf setting.
Ah, that's what I was missing! nvidia-smi returned 8.6 for my card so I set CUDAARCHS="86" and now it is working.

Thank you @BJP!
Top
Post Reply

7 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy