Use cdi device driver to handle nvidia --gpus requests by elezar · Pull Request #50228 · moby/moby (original) (raw)

@elezar mentioned this pull request

Jun 18, 2025

elezar

@elezar elezar marked this pull request as ready for review

August 14, 2025 12:45

@elezar elezar changed the title[WIP] Map nvidia requests to cdi Use cdi device driver to handle nvidia --gpus requests

Aug 14, 2025

thaJeztah

vvoland

vvoland

@elezar

Signed-off-by: Evan Lezar elezar@nvidia.com

@elezar @thaJeztah

This change updates the device driver for --gpu requests to handle --gpu requests as CDI device requests. This is only done if the nvidia-cdi-hook binary is present and falls back to the nvidia-container-runtime-hook if available.

If a cdi deviceDriver is installed at the point where a request should be handled, the incoming device request is updated to refer to fully-qualified CDI device names and forwarded to the cdi deviceDriver.

Signed-off-by: Evan Lezar elezar@nvidia.com

thaJeztah

@elezar elezar deleted the map-nvidia-requests-to-cdi branch

January 20, 2026 14:31

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})