mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-26 06:10:29 +01:00
Fix for OpenCL / clbast builds on macOS. (#1329)
This commit is contained in:
parent
a90e96b266
commit
2d13786e91
7
Makefile
7
Makefile
@ -121,7 +121,12 @@ ggml-cuda.o: ggml-cuda.cu ggml-cuda.h
|
|||||||
endif
|
endif
|
||||||
ifdef LLAMA_CLBLAST
|
ifdef LLAMA_CLBLAST
|
||||||
CFLAGS += -DGGML_USE_CLBLAST
|
CFLAGS += -DGGML_USE_CLBLAST
|
||||||
LDFLAGS += -lclblast -lOpenCL
|
# Mac provides OpenCL as a framework
|
||||||
|
ifeq ($(UNAME_S),Darwin)
|
||||||
|
LDFLAGS += -lclblast -framework OpenCL
|
||||||
|
else
|
||||||
|
LDFLAGS += -lclblast -lOpenCL
|
||||||
|
endif
|
||||||
OBJS += ggml-opencl.o
|
OBJS += ggml-opencl.o
|
||||||
ggml-opencl.o: ggml-opencl.c ggml-opencl.h
|
ggml-opencl.o: ggml-opencl.c ggml-opencl.h
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
Loading…
Reference in New Issue
Block a user