Harden AMD driver lookup logic

It looks like the version file doesnt exist on older(?) drivers
This commit is contained in:
Daniel Hiltgen
2024-02-16 16:20:16 -08:00
parent 88622847c6
commit 9754c6d9d8
2 changed files with 16 additions and 3 deletions

View File

@@ -153,6 +153,9 @@ func GetGPUInfo() GpuInfo {
ver, err := AMDDriverVersion()
if err == nil {
slog.Info("AMD Driver: " + ver)
} else {
// For now this is benign, but we may eventually need to fail compatibility checks
slog.Debug("error looking up amd driver version: %s", err)
}
gfx := AMDGFXVersions()
tooOld := false