Skip to content

Allow enable-cuda-compat hook to be disabled in CDI spec generation #970

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

Merged
merged 2 commits into from
Mar 7, 2025

Conversation

elezar
Copy link
Member

@elezar elezar commented Mar 7, 2025

This change adds support to the nvcdi package to opt out of specific hooks.

Currently only the enable-cuda-compat hook is supported. This allows clients to generate a CDI spec that is compatible with older nvidia-cdi-hook CLIs.

This is required in cases where a tool such as the k8s-device-plugin or k8s-dra-driver-gpu needs to generate a CDI specification for a version of the NVIDIA Container Toolkit that does not support this hook.

Backports #968

elezar added 2 commits March 7, 2025 16:55
This change adds support to the nvcdi package to opt out of specific hooks.

Currently only the `enable-cuda-compat` hook is supported. This allows clients to
generate a CDI spec that is compatible with older nvidia-cdi-hook CLIs.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
Management containers don't generally need forward compatibility.
We disable the enable-cuda-compat hook to not include this in the
generated CDI specifications.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar added the backport label Mar 7, 2025
@elezar elezar added this to the v1.17.5 milestone Mar 7, 2025
@elezar elezar self-assigned this Mar 7, 2025
Copy link

@jgehrcke jgehrcke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Thank you!

@elezar elezar merged commit 90d3074 into NVIDIA:release-1.17 Mar 7, 2025
16 checks passed
@elezar elezar deleted the allow-hooks-disable branch March 7, 2025 15:12
@elezar elezar mentioned this pull request Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants