Resolve to csv for CDI generation on tegra systems

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-05-10 14:28:09 +02:00
parent e78a4f5eac
commit 418e4014e6

View File

@ -167,6 +167,16 @@ func (l *nvcdilib) resolveMode() (rmode string) {
return ModeWsl return ModeWsl
} }
isNvml, reason := l.infolib.HasNvml()
l.logger.Debugf("Is NVML-based system? %v: %v", isNvml, reason)
isTegra, reason := l.infolib.IsTegraSystem()
l.logger.Debugf("Is Tegra-based system? %v: %v", isTegra, reason)
if isTegra && !isNvml {
return ModeCSV
}
return ModeNvml return ModeNvml
} }