nvidia-container-toolkit/internal
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
..
config BUGFIX: modifier: respect GPU volume-mount device requests 2025-06-05 15:49:50 +02:00
cuda Fix build and test on darwin 2024-02-05 23:58:28 +01:00
discover Added ability to disable specific (or all) CDI hooks 2025-06-03 16:01:20 +02:00
dxcore Use D3DKMTEnumAdapters3 for adapter enumeration 2024-03-12 11:42:08 +01:00
edits Add envvar to control debug logging in CDI hooks 2025-05-30 15:27:52 +02:00
info Fix mode detection on Thor-based systems 2025-05-13 21:25:11 +02:00
ldcache Fix resolution of libs in LDCache on ARM 2025-04-23 14:28:28 +02:00
logger Add Tracef to logger Interface 2024-07-01 12:12:38 +02:00
lookup [no-relnotes] Update moq to use rm and goimports 2025-03-12 13:12:13 +02:00
modifier BUGFIX: modifier: respect GPU volume-mount device requests 2025-06-05 15:49:50 +02:00
nvcaps Correct constructin of MIG Caps 2022-10-13 14:06:30 +02:00
nvsandboxutils [no-relnotes] Update moq to use rm and goimports 2025-03-12 13:12:13 +02:00
oci [no-relnote] Fix QF1008: could remove embedded field lint errors 2025-04-02 14:18:32 +02:00
platform-support Added ability to disable specific (or all) CDI hooks 2025-06-03 16:01:20 +02:00
requirements [no-relnotes] Update moq to use rm and goimports 2025-03-12 13:12:13 +02:00
runtime Refactor extracting requested devices from the container image 2025-06-05 12:38:45 +02:00
system [no-relnotes] Update moq to use rm and goimports 2025-03-12 13:12:13 +02:00
test Add test package with GetModuleRoot and PrependToPath function 2022-03-29 11:05:41 +02:00