# Makefile for MPI program

# Source file
SRC = mpi_openMP.c

# number of process
NP = 3

# Compiler
CXX = mpicc

# Executable name
EXE = ./out

all: $(EXE)

$(EXE): $(SRC)
	$(CXX) -fopenmp -o $(EXE) $(SRC)

clean:
	rm -f $(EXE)

run:
	mpirun -np $(NP) -f mpi_hosts $(EXE)