File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,15 @@ ifeq ($(OS),Darwin)
118
118
ifeq ($(BUILD_TYPE),metal)
119
119
# -lcblas removed: it seems to always be listed as a duplicate flag.
120
120
CGO_LDFLAGS += -framework Accelerate
121
+ CGO_LDFLAGS_WHISPER+=-lggml-metal -lggml-blas
121
122
CMAKE_ARGS+=-DGGML_METAL=ON
122
- CGO_LDFLAGS_WHISPER+=-lggml-metal
123
+ CMAKE_ARGS+=-DGGML_METAL_USE_BF16=ON
124
+ CMAKE_ARGS+=-DGGML_METAL_EMBED_LIBRARY=ON
125
+ CMAKE_ARGS+=-DWHISPER_BUILD_EXAMPLES=OFF
126
+ CMAKE_ARGS+=-DWHISPER_BUILD_TESTS=OFF
127
+ CMAKE_ARGS+=-DWHISPER_BUILD_SERVER=OFF
128
+ CMAKE_ARGS+=-DGGML_OPENMP=OFF
129
+ export WHISPER_LIBRARY_PATH:=$(WHISPER_LIBRARY_PATH):$(WHISPER_DIR)/build/ggml/src/ggml-metal/:$(WHISPER_DIR)/build/ggml/src/ggml-blas
123
130
endif
124
131
else
125
132
CGO_LDFLAGS_WHISPER+ =-lgomp
You can’t perform that action at this time.
0 commit comments