Unverified Commit c7ea8f23 authored by Jeffrey Morgan's avatar Jeffrey Morgan Committed by GitHub
Browse files

set `num_gpu` to 1 only by default on darwin arm64 (#1771)

parent 0b3118e0
......@@ -33,11 +33,15 @@ func getCPUMem() (memInfo, error) {
}
func NumGPU(numLayer, fileSizeBytes int64, opts api.Options) int {
if opts.NumGPU != -1 {
return opts.NumGPU
}
// metal only supported on arm64
if runtime.GOARCH == "arm64" {
return 1
}
// metal only supported on arm64
return 0
}
......
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