mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-01-22 18:47:32 +00:00
Include HasNVML check in ResolveAutoMode
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
ad9ec1efae
commit
ff86ecb2a5
@ -35,7 +35,10 @@ func ResolveAutoMode(logger Logger, mode string) (rmode string) {
|
||||
isTegra, reason := IsTegraSystem()
|
||||
logger.Debugf("Is Tegra-based system? %v: %v", isTegra, reason)
|
||||
|
||||
if isTegra {
|
||||
hasNVML, reason := HasNVML()
|
||||
logger.Debugf("Has NVML? %v: %v", hasNVML, reason)
|
||||
|
||||
if isTegra && !hasNVML {
|
||||
return "csv"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user