aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSIGSEGV <21287366+akr2002@users.noreply.github.com>2023-07-11 00:36:02 +0530
committerGitHub <noreply@github.com>2023-07-11 00:36:02 +0530
commitc1f29d1bb1d9f3084c9dc177fe9bf9269b9e35af (patch)
tree2caac8240545f2639f3efa3a4d13c24dfd5b92f6 /Makefile
parent26a3a9952636e8e5332e1cdc4f552d32e61b12ce (diff)
parent5656d10599bd756dc0f17284e418e704200b43f3 (diff)
Merge branch 'ggerganov:master' into master
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6068cbe..f887ed6 100644
--- a/Makefile
+++ b/Makefile
@@ -147,6 +147,15 @@ ifndef LLAMA_NO_ACCELERATE
endif
endif # LLAMA_NO_ACCELERATE
+ifdef LLAMA_MPI
+ CFLAGS += -DGGML_USE_MPI -Wno-cast-qual
+ CXXFLAGS += -DGGML_USE_MPI -Wno-cast-qual
+ OBJS += ggml-mpi.o
+
+ggml-mpi.o: ggml-mpi.c ggml-mpi.h
+ $(CC) $(CFLAGS) -c $< -o $@
+endif # LLAMA_MPI
+
ifdef LLAMA_OPENBLAS
CFLAGS += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas -I/usr/include/openblas
LDFLAGS += -lopenblas