Porting MPI PR to Darwin OpenMPI

This commit is contained in:
Chad Brewbaker 2023-07-10 17:49:14 -05:00
parent 5656d10599
commit 2777168618

View File

@ -151,6 +151,12 @@ ifdef LLAMA_MPI
CFLAGS += -DGGML_USE_MPI -Wno-cast-qual CFLAGS += -DGGML_USE_MPI -Wno-cast-qual
CXXFLAGS += -DGGML_USE_MPI -Wno-cast-qual CXXFLAGS += -DGGML_USE_MPI -Wno-cast-qual
OBJS += ggml-mpi.o 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 ggml-mpi.o: ggml-mpi.c ggml-mpi.h
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) -c $< -o $@