-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat:add virutalgl for hardware accelrated opengl #15
feat:add virutalgl for hardware accelrated opengl #15
Conversation
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
@helfrichmichael its in a decent spot now. |
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Need a solution for firefox, because in 22.04 it runs from snapd, and I can't be bothered to get snapd to work inside a container for now that is missing. |
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
… it works! Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
…resizing. Also prefer LF for EOF.
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
…licer-novnc into feature/virtualgl-support
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
…openbox and menu.xml.
…that. the first is the author of the original dockerfile. Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to launch firefox with a /usr/bin/vglrun before it so that it uses the GPU? I will make the rendering faster.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To adjust this, we'd need to modify the lxpanel configuration for firefox-esr to add that prior to the firefox-esr bit.
It does work using /usr/bin/vglrun firefox-esr
, but I'm unsure how best to implement this consistently. I can look into that in a bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- rename firefox-esr and create a script file that calls the renamed binary prepending vglrun and postpending any params.
vglrun /usr/bin/firefox-esr-renameed $@
Interestingly, I cannot get the GPU (NVidia RTX 3070) to passthrough with NVidia + WSL2 + Docker on Windows. Using the benchmark in https://docs.docker.com/desktop/gpu/ works just fine though. Command I'm using to start it: Wondering if I've done something wrong to cause the GPU to not passthrough? |
You might need to set permissions on the card on the host.
In the VirtualGL package there is vglserver_config tool you can run and
select EGL and select N on the permission options. Give that a try. That is
a useful tool to setup the card and driver on the host.
Also I am not sure how nvidia implements EGL in windows drivers. You need
to check about that.
…On Thu, Apr 4, 2024 at 2:48 PM Mike Helfrich ***@***.***> wrote:
Interestingly, I cannot get the GPU (NVidia RTX 3070) to passthrough with
NVidia + WSL2 + Docker on Windows. Using the benchmark in
https://docs.docker.com/desktop/gpu/ works just fine though.
image.png (view on web)
<https://github.com/helfrichmichael/prusaslicer-novnc/assets/9116898/3b22c3c2-39bc-4359-ad34-5ece677d9e8f>
Command I'm using to start it: docker run --detach
--volume=prusaslicer-novnc-data:/configs/
--volume=prusaslicer-novnc-prints:/prints/ -p 8080:8080 -e
SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt" -e ENABLEHWGPU=true -e
NVIDIA_DRIVER_CAPABILITIES="all" -e NVIDIA_VISIBLE_DEVICES="all"
--name=prusaslicer-novnc prusaslicer-novnc
Wondering if I've done something wrong to cause the GPU to not passthrough?
—
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABFHNNTV2DUMKUYTJHVM33Y3WOAVAVCNFSM6AAAAABFVHXM6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZXHE3DAOJQGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Also make sure you can read /dev/dri/card0 from inside the docker container this is that vglrun uses. So that's the first place to look along with the tool I mentioned above |
The GPU benchmark is testing out CUDA cores which are differnt from the EGL features virtualGL uses. AFAIK. I am no expert just got into this a few days ago! |
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
…ing. Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
added code to launch firefox-esr as accelerated if ENABLEHWGPU is set. |
Sorry again for the delay. I'll be reviewing and merging this tonight after work. It's been a busy few days. |
Super sorry for the delayed review! Merging now and we'll address any bugs along the way. Thanks again! |
Add support for virtualGL.
This however means you need to get VirtualGL supported on the host this involved the following
vglserver_config
Once the X server is up and running. Then this container will with fully accelerated