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

How to expose the GPU through the (podman) api #833

Open
LB-Navarro opened this issue Dec 12, 2024 · 1 comment
Open

How to expose the GPU through the (podman) api #833

LB-Navarro opened this issue Dec 12, 2024 · 1 comment

Comments

@LB-Navarro
Copy link

Hi all,
I have been failing to figure out how to properly "translate" the direct container creation with podman to its API equivalent, in particular the:
"--device nvidia.com/gpu=all"

part. I have tried with different options unsuccessfuly. Any hint or tip on what documentation to check?
Thanks
luis

@LB-Navarro
Copy link
Author

I answer myself on the progress if useful to anyone. I did manage to expose the GPU with podman using the libpod api (not the one docker-compatible):
devices : [{
"path": "nvidia.com/gpu=all"
}]

however I did not manage to do it with the docker-compatible one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant