Commit 811c3d19 authored by Michael Yang's avatar Michael Yang
Browse files

no gpu if vram < 2GB

parent d890890f
...@@ -215,6 +215,11 @@ func CheckVRAM() (int64, error) { ...@@ -215,6 +215,11 @@ func CheckVRAM() (int64, error) {
free += vram free += vram
} }
if free*1024*1024 < 2*1000*1000*1000 {
log.Printf("less than 2 GB VRAM available, falling back to CPU only")
free = 0
}
return free, nil return free, nil
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment