This commit is contained in:
Chad Brewbaker 2023-07-14 18:49:17 +02:00 committed by GitHub
commit b16785f713
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 $@