Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

Return err when NewHipLib() detect error. (#8012)

湛露先生46f74e0cb5d5
diff --git a/discover/amd_windows.go b/discover/amd_windows.go
index 37a496643..9477bedc7 100644
--- a/discover/amd_windows.go
+++ b/discover/amd_windows.go
@@ -184,7 +184,7 @@ func (gpus RocmGPUInfoList) RefreshFreeMemory() error {
hl, err := NewHipLib()
if err != nil {
slog.Debug(err.Error())
- return nil
+ return err
}
defer hl.Release()