Include HasNVML check in ResolveAutoMode

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2022-05-11 14:52:59 +02:00
parent ad9ec1efae
commit ff86ecb2a5

View File

@ -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"
}