<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>52640</bug_id>
          
          <creation_ts>2025-01-08 23:58:43 +0300</creation_ts>
          <short_desc>При запуске через systemd не видит видеокарту</short_desc>
          <delta_ts>2026-02-08 21:27:21 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>ollama</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexei V. Mezin">alexei.mezin</reporter>
          <assigned_to name="Vitaly Chikunov">vt</assigned_to>
          <cc>amakeenk</cc>
    
    <cc>snowmix</cc>
    
    <cc>vt</cc>
    
    <cc>zhenyakoltsov</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>256973</commentid>
    <comment_count>0</comment_count>
    <who name="Alexei V. Mezin">alexei.mezin</who>
    <bug_when>2025-01-08 23:58:43 +0300</bug_when>
    <thetext>systemctl start ollama

В логах видно следующее

level=INFO source=gpu.go:221 msg=&quot;looking for compatible GPUs&quot;
...
level=INFO source=gpu.go:610 msg=&quot;no nvidia devices detected by library /usr/lib64/libcuda.so.550.135&quot;
level=WARN source=gpu.go:732 msg=&quot;unable to locate gpu dependency libraries&quot;
level=INFO source=gpu.go:386 msg=&quot;no compatible GPUs were discovered&quot;

А вот как это же место выглядит при запуске от юзера

$ ollama serve
...
level=INFO source=gpu.go:221 msg=&quot;looking for compatible GPUs&quot;
...
level=INFO source=types.go:123 msg=&quot;inference compute&quot; id=GPU-65e1aaaf-bdf4-f0de-78c5-a1602b838a2f library=cuda variant=v12 compute=8.6 driver=12.4 name=&quot;NVIDIA GeForce RTX 3060&quot; total=&quot;11.7 GiB&quot; available=&quot;11.1 GiB&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>258065</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2025-01-26 19:33:28 +0300</bug_when>
    <thetext>Тоже столкнулся с данной проблемой.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>258069</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2025-01-26 20:55:23 +0300</bug_when>
    <thetext>Решение:

```
--- /usr/lib/systemd/system/ollama.service-orig 2025-01-26 20:51:49.357423016 +0300
+++ /usr/lib/systemd/system/ollama.service      2025-01-26 20:52:12.928733751 +0300
@@ -11,7 +11,7 @@
-PrivateDevices=true
+PrivateDevices=false
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>258145</commentid>
    <comment_count>3</comment_count>
    <who name="Евгений">zhenyakoltsov</who>
    <bug_when>2025-01-28 06:07:28 +0300</bug_when>
    <thetext>В чем заключается решение, изменить параметр PrivateDevices=true на PrivateDevices=false или наоборот?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>258360</commentid>
    <comment_count>4</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2025-01-31 02:19:44 +0300</bug_when>
    <thetext>В текущей версии (0.5.7-alt1) нет поддержки CUDA. Так что хоть она и увидела GPU и пишет `PROCESSOR` `100% GPU` в `ollama ps` обработка все равно должна идти на CPU.

Планирую её включить после того как смогу проверить и протестировать функционал. Но, пока у меня доступа к видеокартам нет.

PrivateDevices я уберу, спасибо.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>258472</commentid>
    <comment_count>5</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2025-02-03 04:37:57 +0300</bug_when>
    <thetext>Сделал экспериментальное задание с поддержкой CUDA (NVIDIA GPU):

apt-repo test 372923</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>258512</commentid>
    <comment_count>6</comment_count>
    <who name="Mikhail Chernonog">snowmix</who>
    <bug_when>2025-02-03 18:31:35 +0300</bug_when>
    <thetext>Попробовал тестовое задание. Всё успешно работает nvtop показывает 98-100% загрузки GPU.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>281627</commentid>
    <comment_count>7</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-02-08 21:27:21 +0300</bug_when>
    <thetext>vtkaddon-0-alt4.git.2c1998e -&gt; sisyphus:

Sat Feb 07 2026 Anton Farygin &lt;rider@altlinux&gt; 0-alt4.git.2c1998e
- cherry-picked upstream fixes for VTK 9.5 compatibility (ALT #52640)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>