mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 15:57:04 +00:00
Harden AMD driver lookup logic
It looks like the version file doesnt exist on older(?) drivers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user