From nobody Sat Feb 18 14:59:49 2023 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PJsLM5DK9z3sbcw for ; Sat, 18 Feb 2023 15:00:27 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PJsLM0wZ1z3mx0 for ; Sat, 18 Feb 2023 15:00:27 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=T4ygrKTM; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::533 as permitted sender) smtp.mailfrom=marietto2008@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-x533.google.com with SMTP id dm15so4425526edb.0 for ; Sat, 18 Feb 2023 07:00:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=iyw0ZQjPRhWCAeYSOaHLBw52sfrdssThJcqD1EEpFso=; b=T4ygrKTMuQznc0vY25+tiAA25qTtBNNZW1pjKV83l9dMtqbj1AqPnzhWi+NuDmq8B1 MabKhFcyKR/wUhZo8cu7Yk34KJ5C2KD2TnwZsd1eS3LKdJleAvQiOtkcj/885Ej/Z08b ebpZ4Puee3ZgnEH4PXAD1DJ023gKNi8YikEn2Su+LW3H5hXPip2YRT786bPRhceK4ZA5 ZC1HViyFdxRnNfzqeUZU/NAzMfYZ3u+buo1aZbocZe7hcDuFz8WNRaECai+6qqwFgRp+ y/Xmckv2+hYi/SD1Z9axg3NAtNlW3Ir4u/j6sRUFaQBna99l3DmgKmtnWx4GhbxMIBh2 cuZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=iyw0ZQjPRhWCAeYSOaHLBw52sfrdssThJcqD1EEpFso=; b=PGzB80pNKa2ALJCLHT2ZLjDmu+EaHmZUEX845nyOxpG0g7tOlLpl3AeMqGlaPfWA3P blymBlml1DeIKL+C+ZpZGBKjzHvFH/U7cB4zFgAk2Gl3pTboXRx0+jjiYwBDXrIR9vo+ RoqjzcN7oMVaeFNxHHNm/kgvBJGPmq6pBpxzAKf5OSclmZpkYgXQ8C7fDwChYyXI68XC lR4IAnG5/tLm6fPGY7ZjL9TgEpepu3uMF6ITc0t0zn1qhNUMRtLVBpzIUORbj5SXRTEK 2/IO7g1FNvZcKg46VEfz5Htgc0S2NyaZi4v1w8sqoeO+EdU7rj6e8LODcD6eDhUQQjRD BEGg== X-Gm-Message-State: AO0yUKXtxup4OMVY9WXhU8T3Z484DHaxc+S+vb74JfOILDhUvx9OBCBr Qip+Ah5jliwtZq82NgfC5ICRMM+v8yD/j8MWNSmKOhgCCS50Hw== X-Google-Smtp-Source: AK7set9ZF/8KepWhABsgGuSheI1X/gr7BjPRyQYD1XtWtz3Rp9aECmscEpPAxJ+tUuhm+ISKqmYza0Qxoh3InKZHyoQ= X-Received: by 2002:a50:9fa6:0:b0:4ad:72b2:cf57 with SMTP id c35-20020a509fa6000000b004ad72b2cf57mr136651edf.0.1676732425445; Sat, 18 Feb 2023 07:00:25 -0800 (PST) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 From: Mario Marietto Date: Sat, 18 Feb 2023 15:59:49 +0100 Message-ID: Subject: Why Blender Cycles is not able to detect my GPU(s) and CUDA within the Ubuntu / Linuxulator To: FreeBSD virtualization Content-Type: multipart/alternative; boundary="0000000000009a26b905f4fab05c" X-Spamd-Result: default: False [-2.06 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.993]; NEURAL_SPAM_SHORT(0.94)[0.937]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::533:from]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4PJsLM0wZ1z3mx0 X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --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"
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--