mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-11 03:01:45 +00:00
Porting MPI PR to Darwin OpenMPI
This commit is contained in:
parent
5656d10599
commit
2777168618
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…
Reference in New Issue
Block a user