From: dan <i@dan.games>
To: 59166@debbugs.gnu.org
Subject: bug#59166: Fw: Unable to use GPU in guix shell container with FHS
Date: Thu, 10 Nov 2022 20:51:08 +0800 [thread overview]
Message-ID: <3b2189b6-7e19-fc49-b958-904b8715aa67@dan.games> (raw)
In-Reply-To: <xHd1cq7RQlUrcdcmp_Af4n5HwvXr3nl5OuJh2rj8K49rd1QkEfI2N8WQZ52DlrKayKIX4NBdRK4NhsaLVjDDAJSiNhKiahwwppXX7TM5f6M=@rixotstudio.cz>
hi jacob,
to use gpu in a container, you need a few additional parameters
(assuming you are also using x11):
> guix shell -CF bash coreutils mesa mesa-utils --expose=/tmp/.X11-unix --expose=$XAUTHORITY --expose=/dev/dri --expose=/etc/udev -E "DISPLAY|XAUTHORITY" -- glxgear
hope it could help.
--
dan
parent reply other threads:[~2022-11-10 12:52 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <xHd1cq7RQlUrcdcmp_Af4n5HwvXr3nl5OuJh2rj8K49rd1QkEfI2N8WQZ52DlrKayKIX4NBdRK4NhsaLVjDDAJSiNhKiahwwppXX7TM5f6M=@rixotstudio.cz>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3b2189b6-7e19-fc49-b958-904b8715aa67@dan.games \
--to=i@dan.games \
--cc=59166@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.