nvidia-container-toolkit/internal/config
Evan Lezar f4981f0876
Add cuda-compat-mode config option
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>
2025-05-13 21:49:53 +02:00
..
image Fix NVIDIA_IMEX_CHANNELS handling on legacy images 2024-11-14 13:26:30 -07:00
cli_test.go Only allow host-relative LDConfig paths 2024-11-22 14:25:17 +01:00
cli.go Only allow host-relative LDConfig paths 2024-11-22 14:25:17 +01:00
config_test.go Add cuda-compat-mode config option 2025-05-13 21:49:53 +02:00
config.go Add cuda-compat-mode config option 2025-05-13 21:49:53 +02:00
features.go Merge pull request #943 from elezar/add-disable-imex-channels-feature 2025-02-28 17:53:28 +02:00
hook.go [no-relnote] Remove unused code 2024-11-22 13:11:04 +01:00
runtime.go Add cuda-compat-mode config option 2025-05-13 21:49:53 +02:00
toml_test.go Add cuda-compat-mode config option 2025-05-13 21:49:53 +02:00
toml.go Only allow host-relative LDConfig paths 2024-11-22 14:25:17 +01:00
toolkit-cli.go Use toml representation to get defaults 2023-05-08 11:26:53 +02:00