Merge 2777168618
into 697966680b
This commit is contained in:
commit
b16785f713
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
@ -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 $@
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue