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

Nvidia gpu was not detected until I set runtime: nvidia #49

Open
thiswillbeyourgithub opened this issue Aug 23, 2024 · 1 comment
Open
Labels
documentation Improvements or additions to documentation

Comments

@thiswillbeyourgithub
Copy link

thiswillbeyourgithub commented Aug 23, 2024

restart: unless-stopped

Hi, just adding runtime: nvidia under this line fixed my nvidia gpu detection issue so maybe it would be worth mentionning it at least as a commented line for other struggling users :)

Edit: just noticed that it was removed on purpose so yeah I think leaving a comment would be nice and understand that it's not actually missing

@matatonic
Copy link
Owner

Yeah, this is fairly new behaviour, but the better way to do this on linux is to set it as the default runtime, ex. in /etc/docker/daemon.json:

{
    "runtimes": {
        "nvidia": {
            "path": "nvidia-container-runtime",
            "runtimeArgs": []
        }
    },
    "default-runtime": "nvidia"
}

Which is really a docker setup thing, not an app setup - but I admit it was confusing for me also. Using the command line docker to run it also requires --gpus all, which has similar effect of enabling the gpu access.

This is not required on windows (it's enabled automatically).

Probably deserves a FAQ item.

@matatonic matatonic added the documentation Improvements or additions to documentation label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants