Rev 318 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
MPICC = mpicc
CC = gcc
CFLAGS = -O2 -pipe -DSOLARIS
MPIRUN = mpirun
MACFILE = machines
# targets:
all: proj2-group proj2-normal
clean:
rm -f *~ *.o proj2-group proj2-normal
proj2-group:
$(MPICC) $(CFLAGS) proj2-group.c -o proj2-group
proj2-normal:
$(MPICC) $(CFLAGS) proj2-normal.c -o proj2-normal
run: all
echo "Running tests of size 100"
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 100
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 100
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 100
echo "Running tests of size 1,000"
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 1000
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 1000
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 1000
echo "Running tests of size 10,000"
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 10000
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 10000
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 10000