mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-16 11:30:20 +00:00
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> |
||
---|---|---|
.. | ||
cdi | ||
cdi_test.go | ||
cdi.go | ||
csv_test.go | ||
csv.go | ||
discover_test.go | ||
discover.go | ||
gated.go | ||
graphics_test.go | ||
graphics.go | ||
hook_remover_test.go | ||
hook_remover.go | ||
list.go | ||
stable_test.go | ||
stable.go |