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 iThalay committed Sep 23, 2024
1 parent a585c3e commit 3238a84
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 3238a84

Please sign in to comment.