# Makefile for MPI program

# Source file
SRC = question2.c

# number of process
NP = 8

# Compiler
CC = mpicc

# Executable name
EXE = ./out

all: $(EXE) 

$(EXE): $(SRC)
	$(CC) -o $(EXE) $(SRC)

clean:
	rm -f $(EXE)

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