Skip to content

Conversation

@elezar
Copy link
Member

@elezar elezar commented May 13, 2025

This change adds an nvidia-container-runtime.modes.legacy.cuda-compat-modeconfig option. This can be set to one of four values:

  • ldconfig (default): the --cuda-compat-mode=ldconfig flag is passed to the nvidia-container-cli
  • mount: the --cuda-compat-mode=mount flag is passed to the nvidia-conainer-cli
  • disabled: the --cuda-compat-mode=disabled flag is passed to the nvidia-container-cli
  • hook: the --cuda-compat-mode=disabled flag is passed to the nvidia-container-cli AND the
    enable-cuda-compat hook is used to provide forward compatibility.

Note that the disable-cuda-compat-lib-hook feature flag will prevent the enable-cuda-compat
hook from being used. This change also means that the allow-cuda-compat-libs-from-container
feature flag no longer has any effect.

Backport of #1055

dependabot bot and others added 2 commits May 13, 2025 21:51
Bumps [third_party/libnvidia-container](https://github.com/NVIDIA/libnvidia-container) from `a198166` to `d26524a`.
- [Release notes](https://github.com/NVIDIA/libnvidia-container/releases)
- [Commits](NVIDIA/libnvidia-container@a198166...d26524a)

---
updated-dependencies:
- dependency-name: third_party/libnvidia-container
  dependency-version: d26524ab5db96a55ae86033f53de50d3794fb547
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
This change adds an nvidia-container-runtime.modes.legacy.cuda-compat-mode
config option. This can be set to one of four values:

* ldconfig (default): the --cuda-compat-mode=ldconfig flag is passed to the nvidia-container-cli
* mount: the --cuda-compat-mode=mount flag is passed to the nvidia-conainer-cli
* disabled: the --cuda-compat-mode=disabled flag is passed to the nvidia-container-cli
* hook: the --cuda-compat-mode=disabled flag is passed to the nvidia-container-cli AND the
  enable-cuda-compat hook is used to provide forward compatibility.

Note that the disable-cuda-compat-lib-hook feature flag will prevent the enable-cuda-compat
hook from being used. This change also means that the allow-cuda-compat-libs-from-container
feature flag no longer has any effect.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar added this to the v1.17.7 milestone May 13, 2025
@elezar elezar requested a review from ArangoGutierrez May 13, 2025 19:54
@elezar elezar self-assigned this May 13, 2025
@elezar elezar mentioned this pull request May 13, 2025
@elezar elezar marked this pull request as ready for review May 13, 2025 19:56
@elezar elezar merged commit becddb7 into NVIDIA:release-1.17 May 13, 2025
15 checks passed
@elezar elezar deleted the backport-add-cuda-compat-mode branch May 13, 2025 20:00
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.

1 participant