mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-02-10 15:32:23 +01:00
make : fix CLBlast build on MacOS (#1120)
This commit is contained in:
parent
a0bb409f51
commit
ded17dc1cf
10
Makefile
10
Makefile
@ -192,11 +192,17 @@ endif
|
|||||||
|
|
||||||
ifdef WHISPER_CLBLAST
|
ifdef WHISPER_CLBLAST
|
||||||
CFLAGS += -DGGML_USE_CLBLAST
|
CFLAGS += -DGGML_USE_CLBLAST
|
||||||
LDFLAGS += -lclblast -lOpenCL
|
CXXFLAGS += -DGGML_USE_CLBLAST
|
||||||
|
LDFLAGS += -lclblast
|
||||||
|
ifeq ($(UNAME_S),Darwin)
|
||||||
|
LDFLAGS += -framework OpenCL
|
||||||
|
else
|
||||||
|
LDFLAGS += -lOpenCL
|
||||||
|
endif
|
||||||
WHISPER_OBJ += ggml-opencl.o
|
WHISPER_OBJ += ggml-opencl.o
|
||||||
|
|
||||||
ggml-opencl.o: ggml-opencl.cpp ggml-opencl.h
|
ggml-opencl.o: ggml-opencl.cpp ggml-opencl.h
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CXX) $(CXXFLAGS) -c $< -o $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef WHISPER_GPROF
|
ifdef WHISPER_GPROF
|
||||||
|
Loading…
Reference in New Issue
Block a user