Skip to content

Commit 3238a84

Browse files
josharianiThalay
authored andcommitted
bindings/go : add linker flags to make metal work (ggml-org#1944)
The first two are required to build. The last one is to make it actually detect the GPU. Fixes ggml-org#1899, at least for me
1 parent a585c3e commit 3238a84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/go/whisper.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
/*
1212
#cgo LDFLAGS: -lwhisper -lm -lstdc++
13-
#cgo darwin LDFLAGS: -framework Accelerate
13+
#cgo darwin LDFLAGS: -framework Accelerate -framework Metal -framework Foundation -framework CoreGraphics
1414
#include <whisper.h>
1515
#include <stdlib.h>
1616

0 commit comments

Comments
 (0)