Skip to content

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

Description

@netbrain

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions