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 Mar 9, 2024
1 parent 9f800ae commit 730a8b3
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 730a8b3

Please sign in to comment.