nvidia-container-toolkit/internal/modifier
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
..
cdi run goimports -local against the entire codebase 2023-12-01 11:13:17 +01:00
cdi_test.go Add nvidia-container-runtime.modes.cdi.annotation-prefixes config option. 2023-03-27 16:36:54 +02:00
cdi.go [no-relnote] Use image.CUDA to extract visible devices 2024-10-17 16:53:17 +02:00
csv_test.go [no-relnote] Remove duplicate test case 2025-02-05 19:01:43 +01:00
csv.go Allow cdi mode to work with --gpus flag 2025-02-05 19:01:43 +01:00
discover_test.go run goimports -local against the entire codebase 2023-12-01 11:13:17 +01:00
discover.go run goimports -local against the entire codebase 2023-12-01 11:13:17 +01:00
gated.go Add cuda-compat-mode config option 2025-05-13 21:49:53 +02:00
graphics_test.go run goimports -local against the entire codebase 2023-12-01 11:13:17 +01:00
graphics.go [no-relnote] Use image.CUDA to extract visible devices 2024-10-17 16:53:17 +02:00
hook_remover_test.go Move cmd/nvidia-container-runtime/modifier package to internal/modifier 2022-07-01 14:28:40 +02:00
hook_remover.go Allow cdi mode to work with --gpus flag 2025-02-05 19:01:43 +01:00
list.go [no-relnote] Refactor oci spec modifier list 2025-01-22 13:58:31 +01:00
stable_test.go run goimports -local against the entire codebase 2023-12-01 11:13:17 +01:00
stable.go run goimports -local against the entire codebase 2023-12-01 11:13:17 +01:00