nvidia-container-toolkit/cmd/nvidia-container-runtime-hook
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
..
capabilities.go Refactor handling of DriverCapabilities 2023-08-14 10:40:42 +02:00
container_config_test.go [no-relnote] Refactor config handling for hook 2024-11-22 13:19:05 +01:00
container_config.go Add ignore-imex-channel-requests feature flag 2025-02-26 17:46:36 +02:00
hook_config_test.go [no-relnote] Fix QF1012: Use fmt.Fprintf(...) instead of WriteString(fmt.Sprintf(...)) lint errors 2025-04-02 14:18:32 +02:00
hook_config.go Add cuda-compat-mode config option 2025-05-13 21:49:53 +02:00
hook_test.go Rename -toolkit executable to -runtime-hook 2022-07-08 12:09:11 +02:00
main.go Add cuda-compat-mode config option 2025-05-13 21:49:53 +02:00