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

dGPU hardware acceleration not working in systems with an iGPU #641

Open
anhminhpho opened this issue Oct 8, 2024 · 1 comment
Open
Labels
bug Something isn't working
Milestone

Comments

@anhminhpho
Copy link

Kyoo's version

4.7.0

What happened?

Bonjour :)

In a system with an integrated GPU, Kyoo doesn't seem to have access to the dedicated GPU for hardware accelerated transcoding. Infinite loading screen, no GPU activity and no ffmpeg process running:

dGPU
image

iGPU
image

Modifying the transcoder-nvidia block in the docker-compose file according to this docker documentation fixes the bug, but I'm not sure if it's the best way to do it in this context.

          devices:
            - capabilities: [gpu]
          devices:
            - driver: nvidia
              device_ids: ['0']
              capabilities: [gpu]

Ubuntu Server 22.04
CPU with iGPU: Ryzen 7 5700G
dGPU: Nvidia GTX 1080

@anhminhpho anhminhpho added the bug Something isn't working label Oct 8, 2024
@zoriya
Copy link
Owner

zoriya commented Oct 9, 2024

docker is evolving its API to handle GPU hardware acceleration, I've also seen the following used:

transcoder-nvidia:
    <<: *transcoder-base
    deploy:
      resources:
        reservations:
          devices:
            - driver: cdi
              device_ids:
                - nvidia.com/gpu=all

I think it depends on the version of the docker runtime. While we are in this transition period, I'll add something in the doc about that.

@zoriya zoriya added this to the v4.8.0 milestone Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants