Open kenmoini opened 8 months ago
A friendly reminder that this issue had no activity for 30 days.
Same here!! We need to access GPUs for some builds, not only when running the container.
@nalind PTAL
This should work as of 1.36, which includes #5443 and #5494.
Issue Description
When using NVIDIA GPUs with Podman via the Container Device Interface
podman build
fails to use labeled devices whilepodman run
works as intended.However, if using the direct device path the
podman build
execution works as expected.Steps to reproduce the issue
Steps to reproduce the issue
nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
podman run
which works:podman run --rm --device nvidia.com/gpu=all --security-opt=label=disable ubuntu nvidia-smi -L
podman build
with the same device label which fails:Describe the results you received
The result of using the CDI device label fails:
Describe the results you expected
The container build to start with the device label - only works if you use the device path, but that doesn't seem to load all the associated paths that are defined in the generated CDI configuration.
podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
No
Additional environment details
Running on RHEL 9.3 on an Ampere Altra system - same error on an X86 system.
Additional information
Looks like this also affects buildah: https://github.com/containers/buildah/issues/5432 https://github.com/containers/buildah/pull/5443