nvidia-container-toolkit/internal
Evan Lezar 029a04c37d Use blank device hostPath if same as Path
The HostPath field was added in the v0.5.0 CDI specification.
The cdi package uses strict unmarshalling when loading specs
from file causing failures for unexpected fields.

Since the behaviour for HostPath == "" and HostPath == Path are
equivalent, we clear HostPath if it is equal to Path to ensure
compatibility with the widest range of specs.

This allows, for example, a v0.4.0 spec to be generated as required.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2022-12-02 10:01:22 +01:00
..
config Make NewVisibleDevices public 2022-11-14 12:19:59 +01:00
cuda Add CUDA ComputeCapability function 2022-05-05 14:09:28 +02:00
discover Skip missing by-path symlinks instead of failing 2022-11-23 22:21:58 +01:00
edits Use blank device hostPath if same as Path 2022-12-02 10:01:22 +01:00
info Add internal drm package for determining DRM devices 2022-11-02 14:39:53 +01:00
ldcache Add package for locating libraries in LDCache 2022-09-28 16:43:21 +02:00
lookup Add a locator for libraries 2022-09-28 16:43:21 +02:00
modifier Add discovery of DRM devices 2022-11-02 14:49:08 +01:00
nvcaps Correct constructin of MIG Caps 2022-10-13 14:06:30 +02:00
oci Merge branch 'fix-executable-locator' into 'main' 2022-05-12 05:26:22 +00:00
requirements Add debug logging when checking requirements 2022-05-05 14:14:01 +02:00
runtime Return raw spec from Spec.Load 2022-05-05 13:43:13 +02:00
test