nvidia-container-toolkit/pkg/nvcdi
Evan Lezar 9506bd9da0 Fix generation of management CDI spec in containers
Since we relied on finding libcuda.so in the LDCache to determine both the CUDA
version and the expected directory for the driver libraries, the generation of the
management CDI specifications fails in containers where the LDCache has not been updated.

This change falls back to searching a set of predefined paths instead when the lookup of
libcuda.so in the cache fails.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-03-23 15:59:01 +02:00
..
spec Move path manipulation to spec.Save 2023-03-01 13:49:04 +02:00
transform Update root transformer tests to ensure container path is not modified 2023-02-28 09:00:05 -08:00
api.go Add mofed mode to nvcdi API 2023-03-07 18:47:52 +02:00
common-nvml.go Construct nvml-based CDI lib based on mode 2023-02-20 10:30:13 +02:00
device-wsl.go Add WSL2 discovery and spec generation 2023-02-20 10:30:13 +02:00
driver-nvml.go Fix generation of management CDI spec in containers 2023-03-23 15:59:01 +02:00
driver-wsl.go Add WSL2 discovery and spec generation 2023-02-20 10:30:13 +02:00
full-gpu-nvml.go Generate nested device folder permission hooks per device 2023-02-22 17:16:23 +02:00
gds.go Add gds mode to nvcdi API 2023-03-07 18:47:52 +02:00
lib_test.go Add tests for CDI mode resolution 2023-02-20 16:33:33 +02:00
lib-nvml.go Only init nvml as required when generating CDI specs 2023-03-20 14:24:08 +02:00
lib-wsl.go Return nvcdi.spec.Interface from GetSpec 2023-03-01 12:45:30 +02:00
lib.go Fix generation of management CDI spec in containers 2023-03-23 15:59:01 +02:00
management.go Fix generation of management CDI spec in containers 2023-03-23 15:59:01 +02:00
mig-device-nvml.go Construct nvml-based CDI lib based on mode 2023-02-20 10:30:13 +02:00
mofed.go Add mofed mode to nvcdi API 2023-03-07 18:47:52 +02:00
namer.go Add nvcdi package with basic CDI generation API 2023-02-14 19:52:31 +01:00
options.go Expose vendor and class as options 2023-03-01 13:48:28 +02:00
workarounds-device-folder-permissions.go Generate nested device folder permission hooks per device 2023-02-22 17:16:23 +02:00