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 build unable to accept gpu's when building but works for run :( #5813

Open
TheFern16 opened this issue Nov 4, 2024 · 3 comments
Open

Comments

@TheFern16
Copy link

TheFern16 commented Nov 4, 2024

$ podman run --rm --device nvidia.com/gpu=all --security-opt=label=disable ubuntu nvidia-smi -L
GPU 0: Tesla T4 (UUID: GPU-1e6d718b-e745-b765-0f63-092332c3a43a)

$ podman build --security-opt=label=disable --device=nvidia.com/gpu=all .
Error: creating build executor: getting info of source device nvidia.com/gpu=all: stat nvidia.com/gpu=all: no such file or directory

My team and I are experiencing the same issues that are referenced here: #4002

Is there a known work-around because I have not found any documentation on this, the other PRs #5443 & #5432 about this issue was also closed. I am still experiencing this :(

@nalind
Copy link
Member

nalind commented Nov 5, 2024

Please always include version information when reporting an issue. This was added in version 1.36, but I can't tell if there's a problem with the logic or in your system's configuration, or if your version of podman predates the functionality.

Copy link

github-actions bot commented Dec 6, 2024

A friendly reminder that this issue had no activity for 30 days.

@nalind
Copy link
Member

nalind commented Dec 6, 2024

Not being able to parse that device spec suggests that it's a version of podman that uses a buildah version earlier than 1.36, when this was added.

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

2 participants