mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
Return err when NewHipLib() detect error. (#8012)
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
This commit is contained in:
parent
7622ea21af
commit
46f74e0cb5
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue