From 27771686182a3b36fce8dd3e20acb19cebb75923 Mon Sep 17 00:00:00 2001 From: Chad Brewbaker Date: Mon, 10 Jul 2023 17:49:14 -0500 Subject: [PATCH] Porting MPI PR to Darwin OpenMPI --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index f887ed67e..1977c4d32 100644 --- a/Makefile +++ b/Makefile @@ -151,6 +151,12 @@ ifdef LLAMA_MPI CFLAGS += -DGGML_USE_MPI -Wno-cast-qual CXXFLAGS += -DGGML_USE_MPI -Wno-cast-qual OBJS += ggml-mpi.o + ifeq ($(UNAME_S),Darwin) + CFLAGS += -I/opt/homebrew/include + CXXFLAGS += -I/opt/homebrew/include + CC = mpicc + CXX = mpic++ + endif ggml-mpi.o: ggml-mpi.c ggml-mpi.h $(CC) $(CFLAGS) -c $< -o $@