Skip to content

Commit

Permalink
make : fix CLBlast build on MacOS (ggerganov#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
iceychris committed Jul 25, 2023
1 parent 2c0477d commit 72c0881
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,17 @@ endif

ifdef WHISPER_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

ggml-opencl.o: ggml-opencl.cpp ggml-opencl.h
$(CC) $(CFLAGS) -c $< -o $@
$(CXX) $(CXXFLAGS) -c $< -o $@
endif

ifdef WHISPER_GPROF
Expand Down

0 comments on commit 72c0881

Please sign in to comment.