Date: Sat, 18 Feb 2023 15:59:49 +0100 From: Mario Marietto <marietto2008@gmail.com> To: FreeBSD virtualization <freebsd-virtualization@freebsd.org> Subject: Why Blender Cycles is not able to detect my GPU(s) and CUDA within the Ubuntu / Linuxulator Message-ID: <CA%2B1FSihSCW84aNjZuA9x3phoR%2BZaKWVezD8sorNVu4BLrKq2Kg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
--0000000000009a26b905f4fab05c Content-Type: text/plain; charset="UTF-8" Hello to everyone. I've just installed Ubuntu 22.10 with the Linuxulator on FreeBSD 13.1-RELEASE p6 as well as these components inside it : 1. nvidia driver Version: 525.78.01 + CUDA 12 2. Blender 3.2.2 The nvidia driver 525.78.1 + CUDA 12 work correctly within the linuxulator : https://ibb.co/8Ps8J81 and Cycles is already able to detect the nvidia driver + CUDA,but only if blender runs on FreeBSD. Give a look at this picture : https://ibb.co/rwZ7q8Q What I want to do is to run Blender and I want to render my projects with cycles using the CUDA libraries and my GPU(s) within the linux emulation layer. Is this supposed to work ? The error that Blender gives when I try to do that are the the following ones : root@marietto:/# blender Read prefs: /root/.config/blender/3.2/config/userpref.blend libGL error: glx: failed to create dri2 screen libGL error: failed to load driver: nouveau could not get a list of mounted file-systems /var/run/user/1001/gvfs/ non-existent directory Saved session recovery to '/tmp/quit.blend' Blender quit why do I use root ? because as a normal user Blender does not start at all. marietto@marietto:~$ blender Unable to open a display Aborted I'm very curious to understand the reason(s) of the errors I see below : libGL error: glx: failed to create dri2 screen libGL error: failed to load driver: nouveau My sensation is that they can be fixed. If I do : cp -r ./blender-3.2.2-linux-x64/3.2/scripts/addons/cycles/lib /compat/ubuntu2210/usr/share/blender/scripts/addons/cycles/ I see this additional error : CUDA cuInit: Unknown error but if I remove the lib directory : rm -r /compat/ubuntu2210/usr/share/blender/scripts/addons/cycles/lib the error "CUDA cuInit: Unknown error" disappears,but the other errors are still there. It seems to me that Blender looks for the nouveau driver and it can't find it. But it should look like the nVidia driver. Since the nouveau driver does not support CUDA,maybe it should be "unlinked" from Blender and Blender should be "linked" to the nvidia driver,in some way. What do you think ? -- Mario. --0000000000009a26b905f4fab05c Content-Type: text/html; charset="UTF-8" <div dir="ltr">Hello to everyone.<br> <br> I've just installed Ubuntu 22.10 with the Linuxulator on FreeBSD 13.1-RELEASE p6 as well as these components inside it :<br> <br> <ol><li>nvidia driver Version: 525.78.01 + CUDA 12</li><li>Blender 3.2.2</li></ol><br> The nvidia driver 525.78.1 + CUDA 12 work correctly within the linuxulator :<br> <br> <a href="https://ibb.co/8Ps8J81" target="_blank" class="gmail-link gmail-link--external" rel="nofollow ugc noopener">https://ibb.co/8Ps8J81</a><br> <br> and Cycles is already able to detect the nvidia driver + CUDA,but only if blender runs on FreeBSD. Give a look at this picture :<br> <br> <a href="https://ibb.co/rwZ7q8Q" target="_blank" class="gmail-link gmail-link--external" rel="nofollow ugc noopener">https://ibb.co/rwZ7q8Q</a><br> <br> What I want to do is to run Blender and I want to render my projects with cycles using the CUDA libraries and my GPU(s) within the linux emulation layer. Is this supposed to work ? The error that Blender gives when I try to do that are the the following ones :<br> <div class="gmail-bbCodeBlock gmail-bbCodeBlock--screenLimited gmail-bbCodeBlock--code"> <div class="gmail-bbCodeBlock-title"><br></div> <div class="gmail-bbCodeBlock-content" dir="ltr"> <pre class="gmail-bbCodeCode" dir="ltr"><code>root@marietto:/# blender Read prefs: /root/.config/blender/3.2/config/userpref.blend libGL error: glx: failed to create dri2 screen libGL error: failed to load driver: nouveau could not get a list of mounted file-systems /var/run/user/1001/gvfs/ non-existent directory Saved session recovery to '/tmp/quit.blend' Blender quit</code></pre> </div> </div><br> why do I use root ? because as a normal user Blender does not start at all.<br> <div class="gmail-bbCodeBlock gmail-bbCodeBlock--screenLimited gmail-bbCodeBlock--code"> <div class="gmail-bbCodeBlock-title"><br></div> <div class="gmail-bbCodeBlock-content" dir="ltr"> <pre class="gmail-bbCodeCode" dir="ltr"><code>marietto@marietto:~$ blender Unable to open a display Aborted</code></pre> </div> </div><br> I'm very curious to understand the reason(s) of the errors I see below :<br> <div class="gmail-bbCodeBlock gmail-bbCodeBlock--screenLimited gmail-bbCodeBlock--code"> <div class="gmail-bbCodeBlock-title"><br></div> <div class="gmail-bbCodeBlock-content" dir="ltr"> <pre class="gmail-bbCodeCode" dir="ltr"><code>libGL error: glx: failed to create dri2 screen libGL error: failed to load driver: nouveau</code></pre> </div> </div><br> My sensation is that they can be fixed. If I do :<br> <br> <div class="gmail-bbCodeBlock gmail-bbCodeBlock--screenLimited gmail-bbCodeBlock--code"> <div class="gmail-bbCodeBlock-title"></div> <div class="gmail-bbCodeBlock-content" dir="ltr"> <pre class="gmail-bbCodeCode" dir="ltr"><code>cp -r ./blender-3.2.2-linux-x64/3.2/scripts/addons/cycles/lib /compat/ubuntu2210/usr/share/blender/scripts/addons/cycles/</code></pre> </div> </div><br> I see this additional error :<br> <br> <div class="gmail-bbCodeBlock gmail-bbCodeBlock--screenLimited gmail-bbCodeBlock--code"> <div class="gmail-bbCodeBlock-title"></div> <div class="gmail-bbCodeBlock-content" dir="ltr"> <pre class="gmail-bbCodeCode" dir="ltr"><code>CUDA cuInit: Unknown error</code></pre> </div> </div><br> but if I remove the lib directory :<br> <br> <div class="gmail-bbCodeBlock gmail-bbCodeBlock--screenLimited gmail-bbCodeBlock--code"> <div class="gmail-bbCodeBlock-title"></div> <div class="gmail-bbCodeBlock-content" dir="ltr"> <pre class="gmail-bbCodeCode" dir="ltr"><code>rm -r /compat/ubuntu2210/usr/share/blender/scripts/addons/cycles/lib</code></pre> </div> </div><br> the error "CUDA cuInit: Unknown error" disappears,but the other errors are still there.<br> <br> It seems to me that Blender looks for the nouveau driver and it can't find it. But it should look like the nVidia driver. Since the nouveau driver does not support CUDA,maybe it should be "unlinked" from Blender and Blender should be "linked" to the nvidia driver,in some way. What do you think ?<br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Mario.<br></div></div> --0000000000009a26b905f4fab05c--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSihSCW84aNjZuA9x3phoR%2BZaKWVezD8sorNVu4BLrKq2Kg>
