mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 15:57:04 +00:00
Return err when NewHipLib() detect error. (#8012)
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user