nvidia-container-toolkit/internal/config
Carlos Eduardo Arango Gutierrez b4f0ad9c8e
BUGFIX: modifier: respect GPU volume-mount device requests
The gated modifiers used to add support for GDS, Mofed, and CUDA Forward Comatibility only check the NVIDIA_VISIBLE_DEVICES envvar to determine whether GPUs are requested and modifications should be made. This means that use cases where volume mounts are used to request devices (e.g. when using the GPU Device Plugin) are not supported.

This patch takes visibleDevicesFromEnvVar private, making VisibleDevices the only exported method to query valid devices.
And edits the gated modifiers to use this func, ensuring device requests
via mounts are also taken into acount.

Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2025-06-05 15:49:50 +02:00
..
image BUGFIX: modifier: respect GPU volume-mount device requests 2025-06-05 15:49:50 +02: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