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 authored Jul 25, 2023
1 parent b81a994 commit 6f5b98f
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 6f5b98f

Please sign in to comment.