Commit Graph

7 Commits

Author SHA1 Message Date
Evan Lezar
67ba04ed26 Make nvmllib a requried argument to devicelib
In oder to ensure consistent usage, we add an explicit
argument for an nvml.Interface implementation to the
device.New constructor.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2024-05-27 17:16:14 +02:00
Evan Lezar
21c8f035ca Add ResolvePlatform function to info package
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2024-05-02 14:09:59 +02:00
Evan Lezar
d1e08f17ea Add UsesOnlyNVGPUModule check to PropertyExtractor interface
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2024-05-02 14:09:38 +02:00
Evan Lezar
791d093c62 Refactor info API
This change adds a PropertyExtractor interface to encapsulate functions
that query a system for certain capabilities.

The IsTegraSystem has been renamed to HasTegraFiles function and marked
as Deprecated.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2024-05-02 14:08:04 +02:00
Carlos Eduardo Arango Gutierrez
48789b76df
Address golangci-lint warnings
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2024-04-04 15:24:10 +02:00
Evan Lezar
bcbaf5a0de Add HasDXCore to info package
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2023-02-08 16:04:35 +01:00
Kevin Klues
d23f460ad3 Move the nvinfo package into pkg/nvlib/info
Also build an interface around the API so that it can more easily be mocked.

Signed-off-by: Kevin Klues <kklues@nvidia.com>
2022-09-15 11:30:34 +00:00