Skip to content

Commit

Permalink
bindings/go : add linker flags to make metal work (ggerganov#1944)
Browse files Browse the repository at this point in the history
The first two are required to build.
The last one is to make it actually detect the GPU.

Fixes ggerganov#1899, at least for me
  • Loading branch information
josharian authored and jiahansu committed Apr 17, 2024
1 parent 2cc52ba commit 083ff3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/go/whisper.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

/*
#cgo LDFLAGS: -lwhisper -lm -lstdc++
#cgo darwin LDFLAGS: -framework Accelerate
#cgo darwin LDFLAGS: -framework Accelerate -framework Metal -framework Foundation -framework CoreGraphics
#include <whisper.h>
#include <stdlib.h>
Expand Down

0 comments on commit 083ff3b

Please sign in to comment.