use osPath in gpu check

This commit is contained in:
Jeffrey Morgan 2023-09-05 21:52:21 -04:00
parent 213ffdb548
commit 7de300856b

View file

@ -69,7 +69,7 @@ func initGGML() {
case "windows": case "windows":
files = []string{"server.exe"} files = []string{"server.exe"}
case "darwin": case "darwin":
if llamaPath == ggmlGPU { if llamaPath == osPath(ggmlGPU) {
files = append(files, "ggml-metal.metal") files = append(files, "ggml-metal.metal")
} }
} }