Skip to content

Commit

Permalink
Return err when NewHipLib() detect error. (ollama#8012)
Browse files Browse the repository at this point in the history
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
  • Loading branch information
zhanluxianshen authored Dec 11, 2024
1 parent 7622ea2 commit 46f74e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discover/amd_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 46f74e0

Please sign in to comment.