Skip to content
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

Podman + PRIME (dual gpu intel + nvidia) not working #21

Open
netbrain opened this issue Sep 13, 2023 · 1 comment
Open

Podman + PRIME (dual gpu intel + nvidia) not working #21

netbrain opened this issue Sep 13, 2023 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@netbrain
Copy link
Owner

When using PRIME the following command works for offloading zwift onto the nvidia gpu in docker.

docker run  -d \
  -e __NV_PRIME_RENDER_OFFLOAD=1 \
  -e __GLX_VENDOR_LIBRARY_NAME=nvidia \
  --rm \
  --privileged \
  -e DISPLAY=:0 \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  -v /run/user/1000/pulse:/run/user/1000/pulse \
  -v zwift-netbrain:/home/user/Zwift \
  --gpus device=GPU-f9b76734-5873-5957-26f3-99604ac5f15a docker.io/netbrain/zwift:latest

However the equivalent command for podman launches the zwift instance on the intel graphics card.

Should probably look into the following resources in order to determine how this can be solved for podman.

https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html
https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/cdi-support.html

@netbrain netbrain added help wanted Extra attention is needed good first issue Good for newcomers labels Sep 13, 2023
@netbrain netbrain pinned this issue Sep 16, 2023
@gregh3285
Copy link

For what it's worth, the following breadcrumb helped me get past the above:
NVIDIA/nvidia-container-toolkit#154 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants